Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 131612df authored by Dimitri Gorokhovik's avatar Dimitri Gorokhovik Committed by Linus Torvalds
Browse files

[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: default avatarDimitri Gorokhovik <dimitri.gorokhovik@free.fr>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a3f99f8b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 = {
+3 −1
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@

#include <linux/module.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/highmem.h>
#include <linux/init.h>
@@ -30,7 +31,8 @@ static int ramfs_nommu_setattr(struct dentry *, struct iattr *);
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 = {