projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3f2235
)
fs/reiserfs: atomically read inode size
author
Fabian Frederick
<fabf@skynet.be>
Mon, 27 Feb 2017 22:27:22 +0000
(14:27 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 28 Feb 2017 02:43:45 +0000
(18:43 -0800)
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>
fs/reiserfs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/reiserfs/super.c
b/fs/reiserfs/super.c
index e314cb30a181e1017f7df769f7faf1bef89bdef1..feabcde0290d27103a11813682091abd1a191661 100644
(file)
--- 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);