NFSD: Have legacy NFSD WRITE decoders use xdr_stream_subsegment()
Refactor. Now that the NFSv2 and NFSv3 XDR decoders have been converted to use xdr_streams, the WRITE decoder functions can use xdr_stream_subsegment() to extract the WRITE payload into its own xdr_buf, just as the NFSv4 WRITE XDR decoder currently does. That makes it possible to pass the first kvec, pages array + length, page_base, and total payload length via a single function parameter. The payload's page_base is not yet assigned or used, but will be in subsequent patches. Signed-off-by:Chuck Lever <chuck.lever@oracle.com> Signed-off-by:
J. Bruce Fields <bfields@redhat.com>
Showing
- fs/nfsd/nfs3proc.c 1 addition, 2 deletionsfs/nfsd/nfs3proc.c
- fs/nfsd/nfs3xdr.c 2 additions, 10 deletionsfs/nfsd/nfs3xdr.c
- fs/nfsd/nfs4proc.c 1 addition, 2 deletionsfs/nfsd/nfs4proc.c
- fs/nfsd/nfsproc.c 1 addition, 2 deletionsfs/nfsd/nfsproc.c
- fs/nfsd/nfsxdr.c 1 addition, 8 deletionsfs/nfsd/nfsxdr.c
- fs/nfsd/xdr.h 1 addition, 1 deletionfs/nfsd/xdr.h
- fs/nfsd/xdr3.h 1 addition, 1 deletionfs/nfsd/xdr3.h
- include/linux/sunrpc/svc.h 1 addition, 2 deletionsinclude/linux/sunrpc/svc.h
- net/sunrpc/svc.c 6 additions, 5 deletionsnet/sunrpc/svc.c
Please register or sign in to comment