]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd4: reserve space before inlining 0-copy pages
authorJ. Bruce Fields <bfields@redhat.com>
Sat, 22 Mar 2014 19:15:11 +0000 (15:15 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 28 May 2014 18:52:42 +0000 (14:52 -0400)
commit13159005ce4fc498ba5f3548513f208851eb58af
tree76663a1106d51070a440d80dc48747eb65499865
parentf3266b0ccc93de930c1c5d2b7c0fdc32eb34dc56
nfsd4: reserve space before inlining 0-copy pages

Once we've included page-cache pages in the encoding it's difficult to
remove them and restart encoding.  (xdr_truncate_encode doesn't handle
that case.)  So, make sure we'll have adequate space to finish the
operation first.

For now COMPOUND_SLACK_SPACE checks should prevent this case happening,
but we want to remove those checks.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c