summaryrefslogtreecommitdiffstats
path: root/fs/jffs2
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2010-05-17 16:55:47 +0300
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-05-18 12:19:36 +0100
commitcd874237d97f24f601f16a140d20803b6a79202e (patch)
tree1d21ee13d45e7839a41c777e466f019cba2603d6 /fs/jffs2
parent11c93605faecfe6f9a28a6f3d14989bad077055a (diff)
downloadlinux-cd874237d97f24f601f16a140d20803b6a79202e.tar.bz2
mtd: mtdchar: Do not corrupt backing device of device node inode
We cannot modify file->f_mapping->backing_dev_info, because it will corrupt backing device of device node inode, since file->f_mapping is equal to inode->i_mapping (see __dentry_open() in fs/open.c). Let's introduce separate inode for MTD device with appropriate backing device. [dwmw2: Refactor to keep it all entirely within mtdchar.c; use iget_locked()] Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Acked-by: Jan Kara <jack@suse.cz> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'fs/jffs2')
0 files changed, 0 insertions, 0 deletions