aboutsummaryrefslogtreecommitdiff
path: root/fs/nfsd/xdr4.h
diff options
context:
space:
mode:
authorGravatar Chuck Lever <chuck.lever@oracle.com> 2023-10-02 10:51:37 -0400
committerGravatar Chuck Lever <chuck.lever@oracle.com> 2023-10-16 12:44:33 -0400
commit6621b88b4b2189a0dd601cd036e27a829868df31 (patch)
tree5c9a594f76c0af6dc91ade163085e0af25c02fc1 /fs/nfsd/xdr4.h
parentNFSD: Restructure nfsd4_encode_create_session() (diff)
downloadlinux-6621b88b4b2189a0dd601cd036e27a829868df31.tar.gz
linux-6621b88b4b2189a0dd601cd036e27a829868df31.tar.bz2
linux-6621b88b4b2189a0dd601cd036e27a829868df31.zip
NFSD: Clean up nfsd4_encode_sequence()
De-duplicate open-coded encoding of the sessionid, and convert the rest of the function to use conventional XDR utility functions. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/xdr4.h')
-rw-r--r--fs/nfsd/xdr4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h
index 6716a7904c9f..c8c21b2d4d14 100644
--- a/fs/nfsd/xdr4.h
+++ b/fs/nfsd/xdr4.h
@@ -97,6 +97,7 @@ nfsd4_encode_uint32_t(struct xdr_stream *xdr, u32 val)
#define nfsd4_encode_mode4(x, v) nfsd4_encode_uint32_t(x, v)
#define nfsd4_encode_nfs_lease4(x, v) nfsd4_encode_uint32_t(x, v)
#define nfsd4_encode_sequenceid4(x, v) nfsd4_encode_uint32_t(x, v)
+#define nfsd4_encode_slotid4(x, v) nfsd4_encode_uint32_t(x, v)
/**
* nfsd4_encode_uint64_t - Encode an XDR uint64_t type result