aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/fuse/dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index fa8cb4b7b8fe..0a648bb455ae 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -1587,7 +1587,8 @@ static int fuse_notify_store(struct fuse_conn *fc, unsigned int size,
1587 1587
1588 this_num = min_t(unsigned, num, PAGE_CACHE_SIZE - offset); 1588 this_num = min_t(unsigned, num, PAGE_CACHE_SIZE - offset);
1589 err = fuse_copy_page(cs, &page, offset, this_num, 0); 1589 err = fuse_copy_page(cs, &page, offset, this_num, 0);
1590 if (!err && offset == 0 && (num != 0 || file_size == end)) 1590 if (!err && offset == 0 &&
1591 (this_num == PAGE_CACHE_SIZE || file_size == end))
1591 SetPageUptodate(page); 1592 SetPageUptodate(page);
1592 unlock_page(page); 1593 unlock_page(page);
1593 page_cache_release(page); 1594 page_cache_release(page);