]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Clean up and fix page zeroing when we have short reads
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 25 May 2006 05:40:44 +0000 (01:40 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 9 Jun 2006 13:34:03 +0000 (09:34 -0400)
commit0e8884f04ee9d0e54ca83a8e60b8122bd1ef5478
treeea865786120cfcefac563c54693fef8d3d718f10
parent8a3052378b6d366cbf9cd7ced31da120658767fe
NFS: Clean up and fix page zeroing when we have short reads

The code that is supposed to zero the uninitialised partial pages when the
server returns a short read is currently broken: it looks at the nfs_page
wb_pgbase and wb_bytes fields instead of the equivalent nfs_read_data
values when deciding where to start truncating the page.

Also ensure that we are more careful about setting PG_uptodate
before retrying a short read: the retry will change the nfs_read_data
args.pgbase and args.count.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/read.c