NFSD: Refactor nfsd4_encode_lock_denied()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 29 Sep 2023 13:58:59 +0000 (09:58 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:30 +0000 (12:44 -0400)
commitc564178290ee068efb87d81654fc03aa01464a0c
treec0448a7e54cba07e970c9241591e1d8c37b684bb
parentc4a29c52506519eeb447800d88a22a6f7bce976c
NFSD: Refactor nfsd4_encode_lock_denied()

Use the modern XDR utility functions.

The LOCK and LOCKT encoder functions need to return nfserr_denied
when a lock is denied, but nfsd4_encode_lock4denied() should return
a status code that is consistent with other XDR encoders.

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