[Ocfs2-devel] [PATCH] ocfs2: optimize ocfs2_check_dir_entry() with unlikely() annotations
Mark Fasheh
mfasheh at suse.com
Mon Jan 24 12:17:10 PST 2011
On Mon, Jan 24, 2011 at 11:23:30PM +0800, Tao Ma wrote:
> From: Tao Ma <boyu.mt at taobao.com>
>
> 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 at evilplan.org>
> Signed-off-by: Tao Ma <boyu.mt at taobao.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
--
Mark Fasheh
More information about the Ocfs2-devel
mailing list