From: Tao Ma Date: Mon, 24 Jan 2011 15:23:30 +0000 (+0800) Subject: ocfs2: optimize ocfs2_check_dir_entry() with unlikely() annotations X-Git-Tag: v2.6.39-rc1~26^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dd9ffc827b8591aabcf5fea6ea83b69e846deb9;p=pandora-kernel.git ocfs2: optimize ocfs2_check_dir_entry() with unlikely() annotations 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 Signed-off-by: Tao Ma Signed-off-by: Joel Becker --- Reading git-diff-tree failed