]> git.baikalelectronics.ru Git - kernel.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>
Fri, 30 May 2014 21:31:50 +0000 (17:31 -0400)
commit57f5f7f696aa14aad9af396f2eeec85f1d12b4c5
treeb8ba2be1bc30afa15dd3257432004b045a8b5b82
parentb6064522d3b14dc6f53d6643560691ff19df2651
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