NFSD: Add nfsd4_encode_fattr4_lease_time()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 18 Sep 2023 13:58:10 +0000 (09:58 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:15 +0000 (12:44 -0400)
commit1252b283aae2b131f6d38fdff8792dfe9d4a536e
tree2782e3fbf7a4d15614cd20eea09b69e660ecf224
parentb6b6259590c5f6d1b2480285d4d5bc8e907caf8f
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>
fs/nfsd/nfs4xdr.c
fs/nfsd/xdr4.h