]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: Encode a full READ_PLUS reply
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 28 Sep 2020 17:09:01 +0000 (13:09 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 12 Oct 2020 14:29:45 +0000 (10:29 -0400)
commit795880db2e8a60c4e5eacab4b44b5541af392b4f
treeaaa8d5b79d184999aa2ca975a43e52d31b48e14c
parenta5585d27f2a33f2a9034814d23bfe0546fbe6a61
NFSD: Encode a full READ_PLUS reply

Reply to the client with multiple hole and data segments. I use the
result of the first vfs_llseek() call for encoding as an optimization so
we don't have to immediately repeat the call. This also lets us encode
any remaining reply as data if we get an unexpected result while trying
to calculate a hole.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c