diff options
-rw-r--r-- | fs/ceph/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index fc8aff4767d3..2d88c805a56c 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c | |||
@@ -350,10 +350,10 @@ static int copy_user_to_page_vector(struct page **pages, | |||
350 | return -EFAULT; | 350 | return -EFAULT; |
351 | data += l - bad; | 351 | data += l - bad; |
352 | left -= l - bad; | 352 | left -= l - bad; |
353 | if (po) { | 353 | po += l - bad; |
354 | po += l - bad; | 354 | if (po == PAGE_CACHE_SIZE) { |
355 | if (po == PAGE_CACHE_SIZE) | 355 | po = 0; |
356 | po = 0; | 356 | i++; |
357 | } | 357 | } |
358 | } | 358 | } |
359 | return len; | 359 | return len; |