summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/xdr4.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2023-09-18 15:58:10 +0200
committerChuck Lever <chuck.lever@oracle.com>2023-10-16 18:44:15 +0200
commit1252b283aae2b131f6d38fdff8792dfe9d4a536e (patch)
tree2782e3fbf7a4d15614cd20eea09b69e660ecf224 /fs/nfsd/xdr4.h
parentNFSD: Add nfsd4_encode_fattr4_fsid() (diff)
downloadlinux-1252b283aae2b131f6d38fdff8792dfe9d4a536e.tar.xz
linux-1252b283aae2b131f6d38fdff8792dfe9d4a536e.zip
NFSD: Add nfsd4_encode_fattr4_lease_time()
Refactor the encoder for FATTR4_LEASE_TIME into a helper. In a subsequent patch, this helper will be called from a bitmask loop. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to '')
-rw-r--r--fs/nfsd/xdr4.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h
index d6059b0549f5..488ecdacc4c6 100644
--- a/fs/nfsd/xdr4.h
+++ b/fs/nfsd/xdr4.h
@@ -90,6 +90,8 @@ nfsd4_encode_uint32_t(struct xdr_stream *xdr, u32 val)
return nfs_ok;
}
+#define nfsd4_encode_nfs_lease4(x, v) nfsd4_encode_uint32_t(x, v)
+
/**
* nfsd4_encode_uint64_t - Encode an XDR uint64_t type result
* @xdr: target XDR stream