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>
Showing
- fs/nfsd/nfs4xdr.c 33 additions, 23 deletionsfs/nfsd/nfs4xdr.c
- fs/nfsd/nfsfh.c 1 addition, 1 deletionfs/nfsd/nfsfh.c
- fs/nfsd/nfsfh.h 2 additions, 1 deletionfs/nfsd/nfsfh.h
- fs/nfsd/xdr4.h 2 additions, 0 deletionsfs/nfsd/xdr4.h
- include/linux/iversion.h 1 addition, 1 deletioninclude/linux/iversion.h
Please register or sign in to comment