mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
fs/reiserfs: atomically read inode size
See i_size_read() comments in include/linux/fs.h Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Fabian Frederick <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a3f2235012
commit
b899ba7d8c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue