NFSD: Add nfsd4_encode_open_delegation4()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 29 Sep 2023 13:59:24 +0000 (09:59 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:32 +0000 (12:44 -0400)
commit802e191353e496f7ad5b00954b4643a1b8d726b5
tree55124cc87d86a0132f7a4c7542d44f05cd43fcd1
parent6dd43c6d5112ffde72fdef782e0970cd27041e79
NFSD: Add nfsd4_encode_open_delegation4()

To better align our implementation with the XDR specification,
refactor the part of nfsd4_encode_open() that encodes delegation
metadata.

As part of that refactor, remove an unnecessary BUG() call site and
a comment that appears to be stale.

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