From: Andy Adamson <andros@xxxxxxxxxx> March 31 review comments. squash into nfsd41: DRC save, restor, and clear functions Signed-off-by: Andy Adamson <andros@xxxxxxxxxx> --- fs/nfsd/nfs4state.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 1fec767..1a9f00a 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -1033,7 +1033,7 @@ nfsd4_release_respages(struct page **respages, short resused) } static void -nfsd4_move_pages(struct page **topages, struct page **frompages, short count) +nfsd4_copy_pages(struct page **topages, struct page **frompages, short count) { int page_no; @@ -1089,7 +1089,7 @@ nfsd4_set_cache_entry(struct nfsd4_compoundres *resp) entry->ce_resused = rqstp->rq_resused; if (entry->ce_resused > NFSD_PAGES_PER_SLOT + 1) entry->ce_resused = NFSD_PAGES_PER_SLOT + 1; - nfsd4_move_pages(entry->ce_respages, rqstp->rq_respages, + nfsd4_copy_pages(entry->ce_respages, rqstp->rq_respages, entry->ce_resused); entry->ce_datav.iov_base = resp->cstate.statp; entry->ce_datav.iov_len = resv->iov_len - ((char *)resp->cstate.statp - @@ -1161,7 +1161,7 @@ nfsd4_replay_cache_entry(struct nfsd4_compoundres *resp, * cached header. Release all the allocated result pages. */ svc_free_res_pages(resp->rqstp); - nfsd4_move_pages(resp->rqstp->rq_respages, entry->ce_respages, + nfsd4_copy_pages(resp->rqstp->rq_respages, entry->ce_respages, entry->ce_resused); } else { /* Release all but the first allocated result page */ @@ -1169,7 +1169,7 @@ nfsd4_replay_cache_entry(struct nfsd4_compoundres *resp, resp->rqstp->rq_resused--; svc_free_res_pages(resp->rqstp); - nfsd4_move_pages(&resp->rqstp->rq_respages[1], + nfsd4_copy_pages(&resp->rqstp->rq_respages[1], &entry->ce_respages[1], entry->ce_resused - 1); } -- 1.5.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html