Commit b899ba7d authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

fs/reiserfs: atomically read inode size

See i_size_read() comments in include/linux/fs.h

Link: 's avatarFabian Frederick <>
Signed-off-by: 's avatarAndrew Morton <>
Signed-off-by: 's avatarLinus Torvalds <>
parent a3f22350
......@@ -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->
} else {
*blocks = simple_strtoul(arg, &p, 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment