]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: drop conditional inode prefetch in __do_lookup_rcu
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jul 2011 18:01:42 +0000 (11:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jul 2011 18:01:42 +0000 (11:01 -0700)
commita878679934693ad40249731760718c7c3981904a
tree0c9456266a09f247a875fd3b55073ad42dc7445d
parent95f1fc1d5b19aa50493d8b290456eadb24185385
vfs: drop conditional inode prefetch in __do_lookup_rcu

It seems to hurt performance in real life.  Yes, the inode will be used
later, but the conditional doesn't seem to predict all that well
(negative dentries are not uncommon) and it looks like the cost of
prefetching is simply higher than depending on the cache doing the right
thing.

As usual.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c