more file_inode() open-coded instances
[deliverable/linux.git] / arch / s390 / hypfs / inode.c
index 280ded8b79ba43174f74dac0aff78cb45f6b84d0..8538015ed4a0487c52b80be2035b8e301cc94f5e 100644 (file)
@@ -171,12 +171,10 @@ static ssize_t hypfs_aio_write(struct kiocb *iocb, const struct iovec *iov,
                              unsigned long nr_segs, loff_t offset)
 {
        int rc;
-       struct super_block *sb;
-       struct hypfs_sb_info *fs_info;
+       struct super_block *sb = file_inode(iocb->ki_filp)->i_sb;
+       struct hypfs_sb_info *fs_info = sb->s_fs_info;
        size_t count = iov_length(iov, nr_segs);
 
-       sb = iocb->ki_filp->f_path.dentry->d_inode->i_sb;
-       fs_info = sb->s_fs_info;
        /*
         * Currently we only allow one update per second for two reasons:
         * 1. diag 204 is VERY expensive
This page took 0.035969 seconds and 5 git commands to generate.