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 | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 1a9f00a..f1beb1c 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -1021,27 +1021,27 @@ nfsd4_set_statp(struct svc_rqst *rqstp, __be32 *statp) static void nfsd4_release_respages(struct page **respages, short resused) { - int page_no; + int i; dprintk("--> %s\n", __func__); - for (page_no = 0; page_no < resused; page_no++) { - if (!respages[page_no]) + for (i = 0; i < resused; i++) { + if (!respages[i]) continue; - put_page(respages[page_no]); - respages[page_no] = NULL; + put_page(respages[i]); + respages[i] = NULL; } } static void nfsd4_copy_pages(struct page **topages, struct page **frompages, short count) { - int page_no; + int i; - for (page_no = 0; page_no < count; page_no++) { - topages[page_no] = frompages[page_no]; - if (!topages[page_no]) + for (i = 0; i < count; i++) { + topages[i] = frompages[i]; + if (!topages[i]) continue; - get_page(topages[page_no]); + get_page(topages[i]); } } -- 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