aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/nfs4xdr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 94b7f19d2718..4c247c1ea5c1 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -3625,6 +3625,14 @@ nfsd4_encode_operation(struct nfsd4_compoundres *resp, struct nfsd4_op *op)
3625 /* nfsd4_check_resp_size guarantees enough room for error status */ 3625 /* nfsd4_check_resp_size guarantees enough room for error status */
3626 if (!op->status) 3626 if (!op->status)
3627 op->status = nfsd4_check_resp_size(resp, 0); 3627 op->status = nfsd4_check_resp_size(resp, 0);
3628 if (op->status == nfserr_resource && nfsd4_has_session(&resp->cstate)) {
3629 struct nfsd4_slot *slot = resp->cstate.slot;
3630
3631 if (slot->sl_flags & NFSD4_SLOT_CACHETHIS)
3632 op->status = nfserr_rep_too_big_to_cache;
3633 else
3634 op->status = nfserr_rep_too_big;
3635 }
3628 if (so) { 3636 if (so) {
3629 so->so_replay.rp_status = op->status; 3637 so->so_replay.rp_status = op->status;
3630 so->so_replay.rp_buflen = (char *)resp->p - (char *)(statp+1); 3638 so->so_replay.rp_buflen = (char *)resp->p - (char *)(statp+1);