From: LiFan Date: Tue, 5 Dec 2017 08:38:01 +0000 (+0800) Subject: f2fs: use unlikely for release case X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f76c831abdd7f71eb7f146445740cf35fb431690;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Fan li Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 82f1dc345505..6c6cf94f490f 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -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;