mbox series

[v2,0/1] NFSD: Simplify READ_PLUS

Message ID 20220907195259.926736-1-anna@kernel.org (mailing list archive)
Headers show
Series NFSD: Simplify READ_PLUS | expand

Message

Anna Schumaker Sept. 7, 2022, 7:52 p.m. UTC
From: Anna Schumaker <Anna.Schumaker@Netapp.com>

When we left off with READ_PLUS, Chuck had suggested reverting the
server to reply with a single NFS4_CONTENT_DATA segment essentially
mimicing how the READ operation behaves. Then, a future sparse read
function can be added and the server modified to support it without
needing to rip out the old READ_PLUS code at the same time.

This patch takes that first step. I was even able to re-use the
nfsd4_encode_readv() and nfsd4_encode_splice_read() functions to
remove some duuplicate code.

- v2:
  - Add splice read support
  - Address Chuck's style comments
  - Reword the commit message

Thanks,
Anna


Anna Schumaker (1):
  NFSD: Simplify READ_PLUS

 fs/nfsd/nfs4xdr.c | 139 +++++++++++-----------------------------------
 1 file changed, 32 insertions(+), 107 deletions(-)