NFSD: Add nfsd4_encode_fattr4_change()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 18 Sep 2023 13:57:51 +0000 (09:57 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:14 +0000 (12:44 -0400)
commit263453d9bb46ad42f03a0f86aafe580f1b0e9291
tree68ca0855e87628fa991e23a5d7741ee0a3367152
parent36ed7e64947756baa69cfad323898b342bf71a02
NFSD: Add nfsd4_encode_fattr4_change()

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

The code is restructured a bit to use the modern xdr_stream flow,
and the encoded cinfo value is made const so that callers of the
encoders can be passed a const cinfo.

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