NFSD: Add nfsd4_encode_fattr4__true()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 18 Sep 2023 13:57:19 +0000 (09:57 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:12 +0000 (12:44 -0400)
commitc88cb4727a77220ba2bc8f09aa01ec2aeb0be033
tree44a88417ca71e67fcd64283cb028f9aaec0b2cfb
parent83ab8678ad0c6f27594c716cafe59c8bbd5e49ef
NFSD: Add nfsd4_encode_fattr4__true()

Add an encoding helper that encodes a single boolean "true" value.
Attributes that always return "true" can use this helper.

In a subsequent patch, this helper will be called from a bitmask
loop, so it is given a standardized synopsis.

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