summaryrefslogtreecommitdiffstats
path: root/arch/s390/hypfs/hypfs_dbfs.c
diff options
context:
space:
mode:
authorAl Viro2013-01-23 23:07:38 +0100
committerAl Viro2013-02-23 05:31:31 +0100
commit496ad9aa8ef448058e36ca7a787c61f2e63f0f54 (patch)
tree8f4abde793cd7db5bb8fde6d27ebcacd0e54379a /arch/s390/hypfs/hypfs_dbfs.c
parentmount: consolidate permission checks (diff)
downloadkernel-qcow2-linux-496ad9aa8ef448058e36ca7a787c61f2e63f0f54.tar.gz
kernel-qcow2-linux-496ad9aa8ef448058e36ca7a787c61f2e63f0f54.tar.xz
kernel-qcow2-linux-496ad9aa8ef448058e36ca7a787c61f2e63f0f54.zip
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/s390/hypfs/hypfs_dbfs.c')
-rw-r--r--arch/s390/hypfs/hypfs_dbfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/hypfs/hypfs_dbfs.c b/arch/s390/hypfs/hypfs_dbfs.c
index 13e76dabbe8b..9fd4a40c6752 100644
--- a/arch/s390/hypfs/hypfs_dbfs.c
+++ b/arch/s390/hypfs/hypfs_dbfs.c
@@ -54,7 +54,7 @@ static ssize_t dbfs_read(struct file *file, char __user *buf,
if (*ppos != 0)
return 0;
- df = file->f_path.dentry->d_inode->i_private;
+ df = file_inode(file)->i_private;
mutex_lock(&df->lock);
if (!df->data) {
data = hypfs_dbfs_data_alloc(df);