• J. Bruce Fields's avatar
    nfsd4: fix buflen calculation after read encoding · 30596768
    J. Bruce Fields authored
    We don't necessarily want to assume that the buflen is the same
    as the number of bytes available in the pages.  We may have some reason
    to set it to something less (for example, later patches will use a
    smaller buflen to enforce session limits).
    
    So, calculate the buflen relative to the previous buflen instead of
    recalculating it from scratch.
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    30596768
nfs4xdr.c 96.1 KB