* [patch] convert ramfs to use __set_page_dirty_no_writeback
@ 2007-01-31 22:39 Ken Chen
0 siblings, 0 replies; only message in thread
From: Ken Chen @ 2007-01-31 22:39 UTC (permalink / raw)
To: Hugh Dickins, Andrew Morton; +Cc: linux-mm
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>
---
Hugh, I chickened out on swap_aops() as I'd rather not to muck with code
that I'm not familiar with.
--- ./fs/ramfs/file-mmu.c.orig 2007-01-31 13:27:14.000000000 -0800
+++ ./fs/ramfs/file-mmu.c 2007-01-31 13:27:39.000000000 -0800
@@ -31,7 +31,7 @@
.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 = {
--- ./fs/ramfs/file-nommu.c.orig 2007-01-31 13:27:27.000000000 -0800
+++ ./fs/ramfs/file-nommu.c 2007-01-31 13:28:21.000000000 -0800
@@ -32,7 +32,7 @@
.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 = {
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-31 22:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-31 22:39 [patch] convert ramfs to use __set_page_dirty_no_writeback Ken Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).