diff options
author | Hua Zhong <hzhong@gmail.com> | 2006-06-25 14:49:32 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 19:01:26 +0200 |
commit | f58a1ebb22f128fccfeafb2b18557c87741cd627 (patch) | |
tree | 02fc9331087b97f69f50ab3bc78ae1e9910aa6ec /fs/dcache.c | |
parent | [PATCH] Fix "biovec-(256)" in /proc/slabinfo (diff) | |
download | linux-f58a1ebb22f128fccfeafb2b18557c87741cd627.tar.xz linux-f58a1ebb22f128fccfeafb2b18557c87741cd627.zip |
[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 <hzhong@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |