1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
Nick Piggin fb045adb99 fs: dcache reduce branches in lookup path
Reduce some branches and memory accesses in dcache lookup by adding dentry
flags to indicate common d_ops are set, rather than having to check them.
This saves a pointer memory access (dentry->d_op) in common path lookup
situations, and saves another pointer load and branch in cases where we
have d_op but not the particular operation.

Patched with:

git grep -E '[.>]([[:space:]])*d_op([[:space:]])*=' | xargs sed -e 's/\([^\t ]*\)->d_op = \(.*\);/d_set_d_op(\1, \2);/' -e 's/\([^\t ]*\)\.d_op = \(.*\);/d_set_d_op(\&\1, \2);/' -i

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
2011-01-07 17:50:28 +11:00
..
2010-11-15 20:44:26 -05:00
2010-10-30 08:31:35 -07:00
2010-12-11 01:28:58 -05:00
2010-10-30 08:45:43 -04:00
2010-11-10 14:54:09 +01:00
2010-11-10 14:54:09 +01:00
2010-12-13 16:11:13 -08:00
2010-10-25 21:18:20 -04:00
2010-10-25 08:02:40 -07:00
2010-11-17 14:55:45 +09:00
2011-01-07 17:50:27 +11:00
2011-01-07 17:50:26 +11:00
2011-01-07 17:50:23 +11:00
2010-10-25 14:11:37 -07:00
2010-11-15 22:40:38 +01:00
2010-11-15 22:40:38 +01:00
2010-10-26 16:52:08 -07:00
2010-10-28 17:22:13 -04:00
2010-12-22 10:27:53 +01:00
2010-11-12 07:55:32 -08:00
2010-11-16 13:33:23 -08:00
2010-10-25 21:24:15 -04:00
2010-10-28 09:08:47 -05:00
2010-10-26 16:52:05 -07:00
2011-01-07 17:50:27 +11:00
2011-01-07 17:50:19 +11:00
2010-12-02 09:58:00 -05:00
2010-10-24 15:07:11 -07:00
2010-11-12 07:55:32 -08:00
2010-10-29 04:16:31 -04:00
2010-10-27 18:03:16 -07:00
2011-01-07 17:50:27 +11:00
2010-10-30 12:12:50 +02:00
2011-01-07 17:50:27 +11:00
2010-10-27 17:28:36 +01:00
2010-10-26 16:52:03 -07:00
2010-10-26 16:52:14 -07:00