Skip to content

Commit dc77335

Browse files
daimngogregkh
authored andcommitted
NFSD: add encoding of op_recall flag for write delegation
commit 58f5d89 upstream. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bca700b commit dc77335

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/nfsd/nfs4xdr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3361,7 +3361,7 @@ nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_op
33613361
p = xdr_reserve_space(xdr, 32);
33623362
if (!p)
33633363
return nfserr_resource;
3364-
*p++ = cpu_to_be32(0);
3364+
*p++ = cpu_to_be32(open->op_recall);
33653365

33663366
/*
33673367
* TODO: space_limit's in delegations

0 commit comments

Comments
 (0)