Commit 9280f6822c2d7112b47107251fce307aefb31f35

Authored by Miklos Szeredi
Committed by Linus Torvalds
1 parent d0e671a932

[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>

Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff

... ... @@ -483,10 +483,8 @@
483 483 i_size_write(inode, pos);
484 484 spin_unlock(&fc->lock);
485 485  
486   - if (offset == 0 && to == PAGE_CACHE_SIZE) {
487   - clear_page_dirty(page);
  486 + if (offset == 0 && to == PAGE_CACHE_SIZE)
488 487 SetPageUptodate(page);
489   - }
490 488 }
491 489 fuse_invalidate_attr(inode);
492 490 return err;