diff options
Diffstat (limited to 'arch/s390/hypfs/inode.c')
-rw-r--r-- | arch/s390/hypfs/inode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index 280ded8b79ba..8538015ed4a0 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c | |||
@@ -171,12 +171,10 @@ static ssize_t hypfs_aio_write(struct kiocb *iocb, const struct iovec *iov, | |||
171 | unsigned long nr_segs, loff_t offset) | 171 | unsigned long nr_segs, loff_t offset) |
172 | { | 172 | { |
173 | int rc; | 173 | int rc; |
174 | struct super_block *sb; | 174 | struct super_block *sb = file_inode(iocb->ki_filp)->i_sb; |
175 | struct hypfs_sb_info *fs_info; | 175 | struct hypfs_sb_info *fs_info = sb->s_fs_info; |
176 | size_t count = iov_length(iov, nr_segs); | 176 | size_t count = iov_length(iov, nr_segs); |
177 | 177 | ||
178 | sb = iocb->ki_filp->f_path.dentry->d_inode->i_sb; | ||
179 | fs_info = sb->s_fs_info; | ||
180 | /* | 178 | /* |
181 | * Currently we only allow one update per second for two reasons: | 179 | * Currently we only allow one update per second for two reasons: |
182 | * 1. diag 204 is VERY expensive | 180 | * 1. diag 204 is VERY expensive |