aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/file.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-12-21 09:18:23 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-21 12:25:08 -0500
commit9280f6822c2d7112b47107251fce307aefb31f35 (patch)
tree85b972529c22c2089c38290d5cd4717aab13d2e4 /fs/fuse/file.c
parentd0e671a932cb9c653b27393cec26aec012a8d97e (diff)
[PATCH] fuse: remove clear_page_dirty() call
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>
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r--fs/fuse/file.c4
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,
483 i_size_write(inode, pos); 483 i_size_write(inode, pos);
484 spin_unlock(&fc->lock); 484 spin_unlock(&fc->lock);
485 485
486 if (offset == 0 && to == PAGE_CACHE_SIZE) { 486 if (offset == 0 && to == PAGE_CACHE_SIZE)
487 clear_page_dirty(page);
488 SetPageUptodate(page); 487 SetPageUptodate(page);
489 }
490 } 488 }
491 fuse_invalidate_attr(inode); 489 fuse_invalidate_attr(inode);
492 return err; 490 return err;