From: Hua Zhong Date: Sun, 25 Jun 2006 12:49:32 +0000 (-0700) Subject: [PATCH] remove unlikely(sb) in prune_dcache X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f58a1ebb22f128fccfeafb2b18557c87741cd627;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [PATCH] remove unlikely(sb) in prune_dcache likely profiling shows that the following is a miss. After boot: [+- ] Type | # True | # False | Function:Filename@Line +unlikely | 1074| 0 prune_dcache()@:fs/dcache.c@409 After a bonnie++ run: +unlikely | 66716| 19584 prune_dcache()@:fs/dcache.c@409 So remove it. Signed-off-by: Hua Zhong Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/dcache.c b/fs/dcache.c index 313b54b2b8f2..b85fda360533 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -406,7 +406,7 @@ static void prune_dcache(int count, struct super_block *sb) cond_resched_lock(&dcache_lock); tmp = dentry_unused.prev; - if (unlikely(sb)) { + if (sb) { /* Try to find a dentry for this sb, but don't try * too hard, if they aren't near the tail they will * be moved down again soon