diff options
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 2d786b813c7e..16e71d033ea5 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -1261,13 +1261,13 @@ static void svcxdr_init_encode(struct svc_rqst *rqstp, | |||
1261 | xdr->buf = buf; | 1261 | xdr->buf = buf; |
1262 | xdr->iov = head; | 1262 | xdr->iov = head; |
1263 | xdr->p = head->iov_base + head->iov_len; | 1263 | xdr->p = head->iov_base + head->iov_len; |
1264 | xdr->end = head->iov_base + PAGE_SIZE - 2 * RPC_MAX_AUTH_SIZE; | 1264 | xdr->end = head->iov_base + PAGE_SIZE - rqstp->rq_auth_slack; |
1265 | /* Tail and page_len should be zero at this point: */ | 1265 | /* Tail and page_len should be zero at this point: */ |
1266 | buf->len = buf->head[0].iov_len; | 1266 | buf->len = buf->head[0].iov_len; |
1267 | xdr->scratch.iov_len = 0; | 1267 | xdr->scratch.iov_len = 0; |
1268 | xdr->page_ptr = buf->pages; | 1268 | xdr->page_ptr = buf->pages; |
1269 | buf->buflen = PAGE_SIZE * (1 + rqstp->rq_page_end - buf->pages) | 1269 | buf->buflen = PAGE_SIZE * (1 + rqstp->rq_page_end - buf->pages) |
1270 | - 2 * RPC_MAX_AUTH_SIZE; | 1270 | - rqstp->rq_auth_slack; |
1271 | } | 1271 | } |
1272 | 1272 | ||
1273 | /* | 1273 | /* |