]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 28 May 2014 18:52:52 +0000 (14:52 -0400)
commitf74af112f2f9af2039b3276a4f9db6765426445d
tree09b642d6c297f715979e911b07d60530ff5b8953
parent2d938202dbf534888253979add4d38f4509db9e9
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