Kirill A. Shutemov cd874237d9 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>
2010-05-18 12:19:36 +01:00
..
2010-05-13 21:23:06 +01:00
2010-05-13 21:23:06 +01:00
2009-09-04 09:38:14 +01:00
2010-02-26 17:05:26 +00:00
2010-05-15 23:07:01 +01:00
2010-02-26 17:05:26 +00:00
2010-02-26 17:05:26 +00:00
2010-02-26 19:06:50 +00:00
2010-02-26 17:05:26 +00:00