]> 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)
commit24ececd1999e8ccb9cc96b6396e14a1cb323aa63
treeaaa8d5b79d184999aa2ca975a43e52d31b48e14c
parentedfc86a3b7c9521b436e0da3e2ae9be2ec90ffad
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