Skip to content

Commit

Permalink
[PATCH] fuse: remove clear_page_dirty() call
Browse files Browse the repository at this point in the history
The use by FUSE was just a remnant of an optimization from the time
when writable mappings were supported.

Now FUSE never actually allows the creation of dirty pages, so this
invocation of clear_page_dirty() is effectively a no-op.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Dec 21, 2006
1 parent d0e671a commit 9280f68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9280f68

Please sign in to comment.