diff options
author | J. Bruce Fields <bfields@redhat.com> | 2014-05-19 16:18:23 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-05-30 17:32:00 -0400 |
commit | 30596768b31069a3ae08fc305f394efb8c42b473 (patch) | |
tree | 0cd29bfdb5396b795345c45d048707e70affd2f8 /fs/char_dev.c | |
parent | 89ff884ebbd0a667253dd61ade8a0e70b787c84a (diff) | |
download | talos-obmc-linux-30596768b31069a3ae08fc305f394efb8c42b473.tar.gz talos-obmc-linux-30596768b31069a3ae08fc305f394efb8c42b473.zip |
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>
Diffstat (limited to 'fs/char_dev.c')
0 files changed, 0 insertions, 0 deletions