aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiFan <[email protected]>2017-12-05 16:38:01 +0800
committerJaegeuk Kim <[email protected]>2018-01-02 19:27:30 -0800
commitfab2adee36039cdc2002ba3fe3a416c3f1bc6b52 (patch)
tree2a5916b9c99cf68ab6b63c2435c58258a6733912
parentf652e9d988d6b4d2a81c920374431a73b70090fd (diff)
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 <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index e9e72844220c..930cf430dcc2 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;