ext4: optimize ext4_check_dir_entry() with unlikely() annotations
authorTheodore Ts'o <tytso@mit.edu>
Mon, 20 Dec 2010 03:07:02 +0000 (22:07 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 20 Dec 2010 03:07:02 +0000 (22:07 -0500)
commitcad3f00763dcf9dfc62cbddf4bd714ab5a71a0eb
tree02ec7c4959f5506f0b2fe128b1318e257ee6f0e4
parentb17b35ec13adfeb0346d4b329110b14adc509327
ext4: optimize ext4_check_dir_entry() with unlikely() annotations

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.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/dir.c
fs/ext4/ext4.h
fs/ext4/namei.c