diff options
-rw-r--r-- | fs/fuse/file.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 1387749201b3..f63efe1337ec 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -483,10 +483,8 @@ static int fuse_commit_write(struct file *file, struct page *page, i_size_write(inode, pos); spin_unlock(&fc->lock); - if (offset == 0 && to == PAGE_CACHE_SIZE) { - clear_page_dirty(page); + if (offset == 0 && to == PAGE_CACHE_SIZE) SetPageUptodate(page); - } } fuse_invalidate_attr(inode); return err; |