]> err.no Git - linux-2.6/commitdiff
[PATCH] convert ramfs to use __set_page_dirty_no_writeback
authorKen Chen <kenchen@google.com>
Sat, 10 Feb 2007 09:43:17 +0000 (01:43 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:19 +0000 (10:51 -0800)
As pointed out by Hugh, ramfs would also benefit from using the new
set_page_dirty aop method for memory backed file systems.

Signed-off-by: Ken Chen <kenchen@google.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ramfs/file-mmu.c
fs/ramfs/file-nommu.c

index 54ebbc84207f162f2f58a8d00a1e8403088d5fc0..b935a3dd4b6544cf8bbbd4ee5a26afe095d70273 100644 (file)
@@ -31,7 +31,7 @@ const struct address_space_operations ramfs_aops = {
        .readpage       = simple_readpage,
        .prepare_write  = simple_prepare_write,
        .commit_write   = simple_commit_write,
-       .set_page_dirty = __set_page_dirty_nobuffers,
+       .set_page_dirty = __set_page_dirty_no_writeback,
 };
 
 const struct file_operations ramfs_file_operations = {
index e9d6c47332826501c2857514c6ba334366856791..d05e09ac9a99763851d412688b04b9908ebeab25 100644 (file)
@@ -32,7 +32,7 @@ const struct address_space_operations ramfs_aops = {
        .readpage               = simple_readpage,
        .prepare_write          = simple_prepare_write,
        .commit_write           = simple_commit_write,
-       .set_page_dirty = __set_page_dirty_nobuffers,
+       .set_page_dirty         = __set_page_dirty_no_writeback,
 };
 
 const struct file_operations ramfs_file_operations = {