diff options
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 671f9b96429b..64bc2150a6fa 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -2975,7 +2975,7 @@ nfsd4_encode_destroy_session(struct nfsd4_compoundres *resp, int nfserr, | |||
2975 | return nfserr; | 2975 | return nfserr; |
2976 | } | 2976 | } |
2977 | 2977 | ||
2978 | static __be32 | 2978 | __be32 |
2979 | nfsd4_encode_sequence(struct nfsd4_compoundres *resp, int nfserr, | 2979 | nfsd4_encode_sequence(struct nfsd4_compoundres *resp, int nfserr, |
2980 | struct nfsd4_sequence *seq) | 2980 | struct nfsd4_sequence *seq) |
2981 | { | 2981 | { |
@@ -3192,7 +3192,8 @@ nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compo | |||
3192 | iov->iov_len = ((char*)resp->p) - (char*)iov->iov_base; | 3192 | iov->iov_len = ((char*)resp->p) - (char*)iov->iov_base; |
3193 | BUG_ON(iov->iov_len > PAGE_SIZE); | 3193 | BUG_ON(iov->iov_len > PAGE_SIZE); |
3194 | if (resp->cstate.slot != NULL) { | 3194 | if (resp->cstate.slot != NULL) { |
3195 | if (resp->cstate.status == nfserr_replay_cache) { | 3195 | if (resp->cstate.status == nfserr_replay_cache && |
3196 | !nfsd4_not_cached(resp)) { | ||
3196 | iov->iov_len = resp->cstate.iovlen; | 3197 | iov->iov_len = resp->cstate.iovlen; |
3197 | } else { | 3198 | } else { |
3198 | nfsd4_store_cache_entry(resp); | 3199 | nfsd4_store_cache_entry(resp); |