summaryrefslogtreecommitdiff
path: root/fs/reiserfs/super.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2017-02-28 01:27:22 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-28 05:43:45 +0300
commitb899ba7d8c71e2e1c2be281222877c7a1c2ba60d (patch)
tree0ee3fc411809ca365826800b4596d1d344a1b4a6 /fs/reiserfs/super.c
parenta3f2235012cbafdfc0863367c88e29ed789a24f6 (diff)
downloadlinux-b899ba7d8c71e2e1c2be281222877c7a1c2ba60d.tar.xz
fs/reiserfs: atomically read inode size
See i_size_read() comments in include/linux/fs.h Link: http://lkml.kernel.org/r/20170123174701.30394-1-fabf@skynet.be Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs/super.c')
-rw-r--r--fs/reiserfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index e314cb30a181..feabcde0290d 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -1166,7 +1166,7 @@ static int reiserfs_parse_options(struct super_block *s,
if (!strcmp(arg, "auto")) {
/* From JFS code, to auto-get the size. */
*blocks =
- s->s_bdev->bd_inode->i_size >> s->
+ i_size_read(s->s_bdev->bd_inode) >> s->
s_blocksize_bits;
} else {
*blocks = simple_strtoul(arg, &p, 0);