NFS: Optimize allocation of nfs_read/write_data structures
authorChuck Lever <cel@netapp.com>
Thu, 25 May 2006 05:40:53 +0000 (01:40 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 9 Jun 2006 13:34:07 +0000 (09:34 -0400)
commit0d0b5cb36faf7002a11736032313f06d6f3d881c
treed767ae12fde00b553546aab9f5aa3e23cd86069d
parentbf3fcf89552f24657bcfb6a9d73cd167ebb496c6
NFS: Optimize allocation of nfs_read/write_data structures

Clean up use of page_array, and fix an off-by-one error noticed by Tom
Talpey which causes kmalloc calls in cases where using the page_array
is sufficient.

Test plan:
Normal client functional testing with r/wsize=32768.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/read.c
fs/nfs/write.c
include/linux/nfs_xdr.h