aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsfh.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2020-10-27 15:53:42 -0400
committerChuck Lever <chuck.lever@oracle.com>2021-03-22 10:18:51 -0400
commitbddfdbcddbe267519cd36aeb115fdf8620980111 (patch)
tree1ca622b4eabf7a11da5b50115bff0d4f670d5d9b /fs/nfsd/nfsfh.c
parentLinux 5.12-rc4 (diff)
downloadlinux-dev-bddfdbcddbe267519cd36aeb115fdf8620980111.tar.xz
linux-dev-bddfdbcddbe267519cd36aeb115fdf8620980111.zip
NFSD: Extract the svcxdr_init_encode() helper
NFSD initializes an encode xdr_stream only after the RPC layer has already inserted the RPC Reply header. Thus it behaves differently than xdr_init_encode does, which assumes the passed-in xdr_buf is entirely devoid of content. nfs4proc.c has this server-side stream initialization helper, but it is visible only to the NFSv4 code. Move this helper to a place that can be accessed by NFSv2 and NFSv3 server XDR functions. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/nfsfh.c')
0 files changed, 0 insertions, 0 deletions