aboutsummaryrefslogtreecommitdiff
path: root/fs/nfsd/xdr4.h
diff options
context:
space:
mode:
authorGravatar Chuck Lever <chuck.lever@oracle.com> 2023-09-29 09:59:05 -0400
committerGravatar Chuck Lever <chuck.lever@oracle.com> 2023-10-16 12:44:31 -0400
commite4ad7ce775eee3b1271b9ef0dc1dbdc47cf6a00c (patch)
treeaa6478fdf95263e659b4711dccf2795372a745f3 /fs/nfsd/xdr4.h
parentNFSD: Refactor nfsd4_encode_lock_denied() (diff)
downloadlinux-e4ad7ce775eee3b1271b9ef0dc1dbdc47cf6a00c.tar.gz
linux-e4ad7ce775eee3b1271b9ef0dc1dbdc47cf6a00c.tar.bz2
linux-e4ad7ce775eee3b1271b9ef0dc1dbdc47cf6a00c.zip
NFSD: Add nfsd4_encode_open_read_delegation4()
Refactor nfsd4_encode_open() so the open_read_delegation4 type is encoded in a separate function. This makes it more straightforward to later add support for returning an nfsace4 in OPEN responses that offer a delegation. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/xdr4.h')
-rw-r--r--fs/nfsd/xdr4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h
index e6c9daae196e..cb8e6794a6a1 100644
--- a/fs/nfsd/xdr4.h
+++ b/fs/nfsd/xdr4.h
@@ -380,9 +380,9 @@ struct nfsd4_open {
u32 op_deleg_want; /* request */
stateid_t op_stateid; /* response */
__be32 op_xdr_error; /* see nfsd4_open_omfg() */
- u32 op_recall; /* recall */
struct nfsd4_change_info op_cinfo; /* response */
u32 op_rflags; /* response */
+ bool op_recall; /* response */
bool op_truncate; /* used during processing */
bool op_created; /* used during processing */
struct nfs4_openowner *op_openowner; /* used during processing */