From: Mark Fasheh Date: Mon, 24 Jan 2011 12:17:10 -0800 Subject: [Ocfs2-devel] [PATCH] ocfs2: optimize ocfs2_check_dir_entry() with unlikely() annotations In-Reply-To: <1295882610-12542-1-git-send-email-tm@tao.ma> References: <1295882610-12542-1-git-send-email-tm@tao.ma> Message-ID: <20110124201710.GI9240@wotan.suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ocfs2-devel@oss.oracle.com On Mon, Jan 24, 2011 at 11:23:30PM +0800, Tao Ma wrote: > From: Tao Ma > > 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: Mark Fasheh -- Mark Fasheh