Commit 46626296 authored by Ken Chen's avatar Ken Chen Committed by Linus Torvalds

[PATCH] convert ramfs to use __set_page_dirty_no_writeback

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: default avatarKen Chen <kenchen@google.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 76719325
...@@ -31,7 +31,7 @@ const struct address_space_operations ramfs_aops = { ...@@ -31,7 +31,7 @@ const struct address_space_operations ramfs_aops = {
.readpage = simple_readpage, .readpage = simple_readpage,
.prepare_write = simple_prepare_write, .prepare_write = simple_prepare_write,
.commit_write = simple_commit_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 = { const struct file_operations ramfs_file_operations = {
......
...@@ -32,7 +32,7 @@ const struct address_space_operations ramfs_aops = { ...@@ -32,7 +32,7 @@ const struct address_space_operations ramfs_aops = {
.readpage = simple_readpage, .readpage = simple_readpage,
.prepare_write = simple_prepare_write, .prepare_write = simple_prepare_write,
.commit_write = simple_commit_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 = { const struct file_operations ramfs_file_operations = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment