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

Commit f76c831a authored by LiFan's avatar LiFan Committed by Jaegeuk Kim
Browse files

f2fs: use unlikely for release case



Since the variable release is only nonzero when another unlikely
case occurs, use unlikely() on it seems logical.

Signed-off-by: default avatarFan li <fanofcode.li@samsung.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 0408ad5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1594,7 +1594,7 @@ static inline int inc_valid_block_count(struct f2fs_sb_info *sbi,
	}
	spin_unlock(&sbi->stat_lock);

	if (release)
	if (unlikely(release))
		dquot_release_reservation_block(inode, release);
	f2fs_i_blocks_write(inode, *count, true, true);
	return 0;