diff options
author | Dai Ngo <dai.ngo@oracle.com> | 2023-06-07 01:41:02 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-06-12 18:16:35 +0200 |
commit | 58f5d894006d82ed7335e1c37182fbc5f08c2f51 (patch) | |
tree | 61da3747a67c3650d2328de9cecd3eea1daaa163 /fs/nfsd/nfs4xdr.c | |
parent | NFSD: Add "official" reviewers for this subsystem (diff) | |
download | linux-58f5d894006d82ed7335e1c37182fbc5f08c2f51.tar.xz linux-58f5d894006d82ed7335e1c37182fbc5f08c2f51.zip |
NFSD: add encoding of op_recall flag for write delegation
Modified nfsd4_encode_open to encode the op_recall flag properly
for OPEN result with write delegation granted.
Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index c67bc904c7b7..a615fe665381 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -3970,7 +3970,7 @@ nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, p = xdr_reserve_space(xdr, 32); if (!p) return nfserr_resource; - *p++ = cpu_to_be32(0); + *p++ = cpu_to_be32(open->op_recall); /* * TODO: space_limit's in delegations |