ocfs2: optimize ocfs2_check_dir_entry() with unlikely() annotations
authorTao Ma <boyu.mt@taobao.com>
Mon, 24 Jan 2011 15:23:30 +0000 (23:23 +0800)
committerJoel Becker <jlbec@evilplan.org>
Sun, 20 Feb 2011 11:56:12 +0000 (03:56 -0800)
In cad3f00, ext4_check_dir_entry was modified by adding some unlikely.
Ted described it as "This function gets called a lot for large
directories, and the answer is almost always 'no, no, there's no problem'.
This means using unlikely() is a good thing."
ext3 added the similar change in commit a4ae309.

So change it accordingly in ocfs2.

Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>

No differences found