]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: add unlikely() macro for compiler more aggressively
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 6 Dec 2013 06:00:58 +0000 (15:00 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:06 +0000 (10:18 +0900)
commit7f73d425ba230a48f96e32950aacf83a11879f07
tree422eb46c144b7ffbae193570a001de2eed490e09
parentfc486266be86df99166d96f3e3d85e3d1a91297e
f2fs: add unlikely() macro for compiler more aggressively

This patch adds unlikely() macro into the most of codes.
The basic rule is to add that when:
- checking unusual errors,
- checking page mappings,
- and the other unlikely conditions.

Change log from v1:
 - Don't add unlikely for the NULL test and error test: advised by Andi Kleen.

Cc: Chao Yu <chao2.yu@samsung.com>
Cc: Andi Kleen <andi@firstfloor.org>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/node.c
fs/f2fs/recovery.c
fs/f2fs/super.c
fs/f2fs/xattr.c