diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2010-05-17 15:55:47 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-05-18 13:19:36 +0200 |
commit | cd874237d97f24f601f16a140d20803b6a79202e (patch) | |
tree | 1d21ee13d45e7839a41c777e466f019cba2603d6 /fs | |
parent | mtd/maps/pcmciamtd: Fix printk format for ssize_t in debug messages (diff) | |
download | linux-cd874237d97f24f601f16a140d20803b6a79202e.tar.xz linux-cd874237d97f24f601f16a140d20803b6a79202e.zip |
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')
0 files changed, 0 insertions, 0 deletions