[PATCH] knfsd: nfsd4: fix corruption of returned data when using 64k pages
authorNeilBrown <neilb@suse.de>
Tue, 11 Apr 2006 05:55:32 +0000 (22:55 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:52 +0000 (06:18 -0700)
commit6ed6decccf544970664757464cfb67e081775e6a
tree9aa6b62856426e5aba7f34b3bbc9b24c87a54b87
parentf0e2993e9e73e8f38b05a89c98b9db94fec2199d
[PATCH] knfsd: nfsd4: fix corruption of returned data when using 64k pages

In v4 we grab an extra page just for the padding of returned data.  The
formula that the rpc server uses to allocate pages for the response doesn't
take into account this extra page.

Instead of adjusting those formulae, we adopt the same solution as v2 and v3,
and put the "tail" data in the same page as the "head" data.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4xdr.c