Эх сурвалжийг харах

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>
Linus Torvalds 14 жил өмнө
parent
commit
b91da88fed
1 өөрчлөгдсөн 0 нэмэгдсэн , 2 устгасан
  1. 0 2
      fs/dcache.c

+ 0 - 2
fs/dcache.c

@@ -1813,8 +1813,6 @@ seqretry:
 		tname = dentry->d_name.name;
 		tname = dentry->d_name.name;
 		i = dentry->d_inode;
 		i = dentry->d_inode;
 		prefetch(tname);
 		prefetch(tname);
-		if (i)
-			prefetch(i);
 		/*
 		/*
 		 * This seqcount check is required to ensure name and
 		 * This seqcount check is required to ensure name and
 		 * len are loaded atomically, so as not to walk off the
 		 * len are loaded atomically, so as not to walk off the