aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r--fs/nfsd/nfs4proc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index a5b666ca560d..3ce431b9b577 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -1279,7 +1279,6 @@ nfsd4_proc_compound(struct svc_rqst *rqstp,
1279 struct nfsd4_compound_state *cstate = &resp->cstate; 1279 struct nfsd4_compound_state *cstate = &resp->cstate;
1280 struct svc_fh *current_fh = &cstate->current_fh; 1280 struct svc_fh *current_fh = &cstate->current_fh;
1281 struct svc_fh *save_fh = &cstate->save_fh; 1281 struct svc_fh *save_fh = &cstate->save_fh;
1282 u32 plen = 0;
1283 __be32 status; 1282 __be32 status;
1284 1283
1285 svcxdr_init_encode(rqstp, resp); 1284 svcxdr_init_encode(rqstp, resp);
@@ -1349,9 +1348,13 @@ nfsd4_proc_compound(struct svc_rqst *rqstp,
1349 1348
1350 /* If op is non-idempotent */ 1349 /* If op is non-idempotent */
1351 if (opdesc->op_flags & OP_MODIFIES_SOMETHING) { 1350 if (opdesc->op_flags & OP_MODIFIES_SOMETHING) {
1352 plen = opdesc->op_rsize_bop(rqstp, op);
1353 /* 1351 /*
1354 * If there's still another operation, make sure 1352 * Don't execute this op if we couldn't encode a
1353 * succesful reply:
1354 */
1355 u32 plen = opdesc->op_rsize_bop(rqstp, op);
1356 /*
1357 * Plus if there's another operation, make sure
1355 * we'll have space to at least encode an error: 1358 * we'll have space to at least encode an error:
1356 */ 1359 */
1357 if (resp->opcnt < args->opcnt) 1360 if (resp->opcnt < args->opcnt)