Skip to contentSkip to conversation

fs/reiserfs: atomically read inode size

PATCH Applied Fabian Frederick 1 participant 1 message Jan 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/reiserfs: atomically read inode size

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

---
 fs/reiserfs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/reiserfs/super.c +1 -1
index e314cb3..feabcde 100644
@@ -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);
Signature · 1 line
2.9.3