diff options
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index c6a726d04efd..dd81ac1a1c6c 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -3194,7 +3194,7 @@ nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compo | |||
3194 | iov = &rqstp->rq_res.head[0]; | 3194 | iov = &rqstp->rq_res.head[0]; |
3195 | iov->iov_len = ((char*)resp->p) - (char*)iov->iov_base; | 3195 | iov->iov_len = ((char*)resp->p) - (char*)iov->iov_base; |
3196 | BUG_ON(iov->iov_len > PAGE_SIZE); | 3196 | BUG_ON(iov->iov_len > PAGE_SIZE); |
3197 | if (resp->cstate.slot != NULL) { | 3197 | if (nfsd4_has_session(&resp->cstate)) { |
3198 | if (resp->cstate.status == nfserr_replay_cache && | 3198 | if (resp->cstate.status == nfserr_replay_cache && |
3199 | !nfsd4_not_cached(resp)) { | 3199 | !nfsd4_not_cached(resp)) { |
3200 | iov->iov_len = resp->cstate.iovlen; | 3200 | iov->iov_len = resp->cstate.iovlen; |