diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c index 04189c47d6a08eedf89184a1cd5739e24275ec15..1b36f45076ade8a365661120baf7741c2e3cef2b 100644 --- a/fs/afs/rxrpc.c +++ b/fs/afs/rxrpc.c @@ -294,7 +294,7 @@ int afs_send_pages(struct afs_call *call, struct msghdr *msg, struct kvec *iov) put_page(pages[loop]); if (ret < 0) break; - } while (first < last); + } while (first <= last); _leave(" = %d", ret); return ret; diff --git a/fs/afs/write.c b/fs/afs/write.c index aa03d43984b37cb4916538dd6b7fa54aa2e47e4e..67ae4dbf66b33793c04ed1b1763a688c7d81e480 100644 --- a/fs/afs/write.c +++ b/fs/afs/write.c @@ -669,7 +669,7 @@ void afs_pages_written_back(struct afs_vnode *vnode, struct afs_call *call) pagevec_init(&pv, 0); do { - _debug("attach %lx-%lx", first, last); + _debug("done %lx-%lx", first, last); count = last - first + 1; if (count > PAGEVEC_SIZE) @@ -701,7 +701,7 @@ void afs_pages_written_back(struct afs_vnode *vnode, struct afs_call *call) } __pagevec_release(&pv); - } while (first < last); + } while (first <= last); _leave(""); }