NFSD: Add nfsd4_encode_fattr4_rdattr_error()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 18 Sep 2023 13:58:17 +0000 (09:58 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:15 +0000 (12:44 -0400)
commit782448e1ec3ef1bd6f7a7ee29ca1fe11a14d9d5f
tree4034ff283c7f98bd2389029e0871ded5759a2ab1
parent1252b283aae2b131f6d38fdff8792dfe9d4a536e
NFSD: Add nfsd4_encode_fattr4_rdattr_error()

Refactor the encoder for FATTR4_RDATTR_ERROR 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