]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: fix buflen calculation after read encoding
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 19 May 2014 20:18:23 +0000 (16:18 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 30 May 2014 21:32:00 +0000 (17:32 -0400)
commita6d9014078f84e292fb603ec081dd6f33e15fa85
tree0cd29bfdb5396b795345c45d048707e70affd2f8
parent2d86872d90f9f3522f839d3d278deb75d7f8ab67
nfsd4: fix buflen calculation after read encoding

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: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c