Cache bypass: make readpage deal with reads at end of file
authorMarc Dionne <marc.c.dionne@gmail.com>
Sun, 7 Nov 2010 18:14:55 +0000 (13:14 -0500)
committerDerrick Brashear <shadow@dementia.org>
Mon, 8 Nov 2010 19:40:31 +0000 (11:40 -0800)
commit8ec31f26770ef1e85fb3a6005467f0e2d3ce1715
treeceec71052bc0c8e9e79d6006dfa2f8020e39eed6
parent5988923898e15cb50d550e54119869b38cb5bc5b
Cache bypass: make readpage deal with reads at end of file

When a file's size is an exact multiple of the page size, the vfs
will issue a readpage for an extra page at the end, for which there
is no data.  Deal with it here instead of letting it trickle down
to the background daemon, which will issue an unnecessary read to the
server, and maybe get confused because there is no data.

Change-Id: If86ed785c4e9d50edb1a960142f726fa869c50fc
Reviewed-on: http://gerrit.openafs.org/3281
Reviewed-by: Matt Benjamin <matt@linuxbox.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/LINUX/osi_vnodeops.c