Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d85063a authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

hfs: atomically read inode size

parent b279ddc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -38,7 +38,7 @@ static int hfs_get_last_session(struct super_block *sb,


	/* default values */
	/* default values */
	*start = 0;
	*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) {
	if (HFS_SB(sb)->session >= 0) {
		te.cdte_track = HFS_SB(sb)->session;
		te.cdte_track = HFS_SB(sb)->session;