diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-01-23 17:07:38 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-22 23:31:31 -0500 |
commit | 496ad9aa8ef448058e36ca7a787c61f2e63f0f54 (patch) | |
tree | 8f4abde793cd7db5bb8fde6d27ebcacd0e54379a /drivers/char/raw.c | |
parent | 57eccb830f1cc93d4b506ba306d8dfa685e0c88f (diff) |
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/char/raw.c')
-rw-r--r-- | drivers/char/raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/raw.c b/drivers/char/raw.c index 54a3a6d09819..f3223aac4df1 100644 --- a/drivers/char/raw.c +++ b/drivers/char/raw.c | |||
@@ -80,7 +80,7 @@ static int raw_open(struct inode *inode, struct file *filp) | |||
80 | filp->f_flags |= O_DIRECT; | 80 | filp->f_flags |= O_DIRECT; |
81 | filp->f_mapping = bdev->bd_inode->i_mapping; | 81 | filp->f_mapping = bdev->bd_inode->i_mapping; |
82 | if (++raw_devices[minor].inuse == 1) | 82 | if (++raw_devices[minor].inuse == 1) |
83 | filp->f_path.dentry->d_inode->i_mapping = | 83 | file_inode(filp)->i_mapping = |
84 | bdev->bd_inode->i_mapping; | 84 | bdev->bd_inode->i_mapping; |
85 | filp->private_data = bdev; | 85 | filp->private_data = bdev; |
86 | mutex_unlock(&raw_mutex); | 86 | mutex_unlock(&raw_mutex); |