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/s390/cio/qdio_debug.c | |
parent | 57eccb830f1cc93d4b506ba306d8dfa685e0c88f (diff) |
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/s390/cio/qdio_debug.c')
-rw-r--r-- | drivers/s390/cio/qdio_debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/qdio_debug.c b/drivers/s390/cio/qdio_debug.c index e6e0d31c02ac..749b72739c4a 100644 --- a/drivers/s390/cio/qdio_debug.c +++ b/drivers/s390/cio/qdio_debug.c | |||
@@ -128,7 +128,7 @@ static int qstat_show(struct seq_file *m, void *v) | |||
128 | static int qstat_seq_open(struct inode *inode, struct file *filp) | 128 | static int qstat_seq_open(struct inode *inode, struct file *filp) |
129 | { | 129 | { |
130 | return single_open(filp, qstat_show, | 130 | return single_open(filp, qstat_show, |
131 | filp->f_path.dentry->d_inode->i_private); | 131 | file_inode(filp)->i_private); |
132 | } | 132 | } |
133 | 133 | ||
134 | static const struct file_operations debugfs_fops = { | 134 | static const struct file_operations debugfs_fops = { |
@@ -221,7 +221,7 @@ static ssize_t qperf_seq_write(struct file *file, const char __user *ubuf, | |||
221 | static int qperf_seq_open(struct inode *inode, struct file *filp) | 221 | static int qperf_seq_open(struct inode *inode, struct file *filp) |
222 | { | 222 | { |
223 | return single_open(filp, qperf_show, | 223 | return single_open(filp, qperf_show, |
224 | filp->f_path.dentry->d_inode->i_private); | 224 | file_inode(filp)->i_private); |
225 | } | 225 | } |
226 | 226 | ||
227 | static struct file_operations debugfs_perf_fops = { | 227 | static struct file_operations debugfs_perf_fops = { |