summaryrefslogtreecommitdiffstats
path: root/fs/ramfs/file-mmu.c
diff options
context:
space:
mode:
authorDimitri Gorokhovik <dimitri.gorokhovik@free.fr>2006-12-30 01:48:24 +0100
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-30 19:56:42 +0100
commit131612dfe7923bd0ce5f82d6ed8303a7ef96e574 (patch)
tree37e3988d2039f413102f23fce08203c8aca600bc /fs/ramfs/file-mmu.c
parent[PATCH] module: fix mod_sysfs_setup() return value (diff)
downloadlinux-131612dfe7923bd0ce5f82d6ed8303a7ef96e574.tar.xz
linux-131612dfe7923bd0ce5f82d6ed8303a7ef96e574.zip
[PATCH] ramfs breaks without CONFIG_BLOCK
ramfs doesn't provide the .set_dirty_page a_op, and when the BLOCK layer is not configured in, 'set_page_dirty' makes a call via a NULL pointer. Signed-off-by: Dimitri Gorokhovik <dimitri.gorokhovik@free.fr> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ramfs/file-mmu.c')
-rw-r--r--fs/ramfs/file-mmu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ramfs/file-mmu.c b/fs/ramfs/file-mmu.c
index 0947fb57dcf3..54ebbc84207f 100644
--- a/fs/ramfs/file-mmu.c
+++ b/fs/ramfs/file-mmu.c
@@ -25,11 +25,13 @@
*/
#include <linux/fs.h>
+#include <linux/mm.h>
const struct address_space_operations ramfs_aops = {
.readpage = simple_readpage,
.prepare_write = simple_prepare_write,
- .commit_write = simple_commit_write
+ .commit_write = simple_commit_write,
+ .set_page_dirty = __set_page_dirty_nobuffers,
};
const struct file_operations ramfs_file_operations = {