Skip to content
Snippets Groups Projects
Commit 8d85063a authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

hfs: atomically read inode size

parent b279ddc3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment