projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b279ddc
)
hfs: atomically read inode size
author
Fabian Frederick
<fabf@skynet.be>
Mon, 27 Feb 2017 22:30:19 +0000
(14:30 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 28 Feb 2017 02:43:48 +0000
(18:43 -0800)
See i_size_read() comments in include/linux/fs.h
Link:
http://lkml.kernel.org/r/20170123175245.3272-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/hfs/mdb.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/hfs/mdb.c
b/fs/hfs/mdb.c
index a3ec3ae7d34796877c2cfc7d08c631128569ca93..482081bcdf70c86da21f22ca1c443373b7327180 100644
(file)
--- a/
fs/hfs/mdb.c
+++ b/
fs/hfs/mdb.c
@@
-38,7
+38,7
@@
static int hfs_get_last_session(struct super_block *sb,
/* default values */
*start = 0;
- *size =
sb->s_bdev->bd_inode->i_size
>> 9;
+ *size =
i_size_read(sb->s_bdev->bd_inode)
>> 9;
if (HFS_SB(sb)->session >= 0) {
te.cdte_track = HFS_SB(sb)->session;