diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/afs/rxrpc.c | 2 | ||||
-rw-r--r-- | fs/afs/write.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c index 04189c47d6a0..1b36f45076ad 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) | |||
294 | put_page(pages[loop]); | 294 | put_page(pages[loop]); |
295 | if (ret < 0) | 295 | if (ret < 0) |
296 | break; | 296 | break; |
297 | } while (first < last); | 297 | } while (first <= last); |
298 | 298 | ||
299 | _leave(" = %d", ret); | 299 | _leave(" = %d", ret); |
300 | return ret; | 300 | return ret; |
diff --git a/fs/afs/write.c b/fs/afs/write.c index aa03d43984b3..67ae4dbf66b3 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) | |||
669 | pagevec_init(&pv, 0); | 669 | pagevec_init(&pv, 0); |
670 | 670 | ||
671 | do { | 671 | do { |
672 | _debug("attach %lx-%lx", first, last); | 672 | _debug("done %lx-%lx", first, last); |
673 | 673 | ||
674 | count = last - first + 1; | 674 | count = last - first + 1; |
675 | if (count > PAGEVEC_SIZE) | 675 | if (count > PAGEVEC_SIZE) |
@@ -701,7 +701,7 @@ void afs_pages_written_back(struct afs_vnode *vnode, struct afs_call *call) | |||
701 | } | 701 | } |
702 | 702 | ||
703 | __pagevec_release(&pv); | 703 | __pagevec_release(&pv); |
704 | } while (first < last); | 704 | } while (first <= last); |
705 | 705 | ||
706 | _leave(""); | 706 | _leave(""); |
707 | } | 707 | } |