NFSD: Add nfsd4_encode_fattr4_time_delta()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 18 Sep 2023 14:01:02 +0000 (10:01 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:23 +0000 (12:44 -0400)
commit993474e8a60f01010f19ac008078c78ef25a84e7
tree9e099605159e7f44caea698678264917bcc5808d
parent2e38722d4af86225d8ec524618036a03f0c98cc6
NFSD: Add nfsd4_encode_fattr4_time_delta()

Refactor the encoder for FATTR4_TIME_DELTA into a helper. In a
subsequent patch, this helper will be called from a bitmask loop.

fattr4_time_delta is specified as an nfstime4, so de-duplicate this
encoder.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4xdr.c