NFSD: add encoding of op_recall flag for write delegation
Subsystems (2)
Dai Ngo
reviewerPATCH 1/1 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 <[email protected]>
--- fs/nfsd/nfs4xdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/nfs4xdr.c +1 -1
@@ -3975,7 +3975,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
Signature · 1 line
2.9.5
Quoted 6 lines · Dai Ngo
Modified
nfsd4_encode_opento encode theop_recallflag properly for OPEN result with write delegation granted.
This appears to have been broken for forever. I can't really nail down a Fixes: commit, so I will add a Cc: stable.
Quoted 21 lines
Signed-off-by Dai Ngo <[email protected]>---
fs/nfsd/nfs4xdr.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)fs/nfsd/nfs4xdr.c +1
-1@@ -3975,7 +3975,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 Signature · 1 line
2.9.5
--
Chuck Lever
Quoted 13 lines · Dai Ngo
Modified
nfsd4_encode_opento encode theop_recallflag properly for OPEN result with write delegation granted.Signed-off-by Dai Ngo <[email protected]>--- fs/nfsd/nfs4xdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/nfsd/nfs4xdr.c +0
-0
fs/nfsd/nfs4xdr.c nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, · line 3981
Quoted 8 lines
fs/nfsd/nfs4xdr.c +1
-1@@ -3975,7 +3975,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
Nice catch!
Reviewed-by Jeff Layton <[email protected]>