• J. Bruce Fields's avatar
    nfsd4: reserve space before inlining 0-copy pages · 4e21ac4b
    J. Bruce Fields authored
    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: default avatarJ. Bruce Fields <bfields@redhat.com>
    4e21ac4b
nfs4xdr.c 96 KB