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-12-23 16:36:48 -08:00
2010-12-23 16:36:48 -08:00
2011-01-07 17:50:26 +11:00
2010-09-23 14:16:21 -07:00
2009-10-28 23:05:57 -07:00
2010-09-08 14:25:57 +08:00
2010-05-18 16:40:42 -07:00
2010-12-09 15:36:48 -08:00
2010-12-09 15:36:48 -08:00
2010-09-08 14:25:53 +08:00
2009-06-03 19:15:36 -07:00
2010-04-30 13:37:29 -07:00
2009-09-04 16:07:48 -07:00
2011-01-07 17:50:24 +11:00
2010-09-10 09:18:15 -07:00
2010-12-16 00:36:15 -08:00
2009-04-03 11:39:16 -07:00
2010-09-10 09:18:15 -07:00
2010-09-10 09:19:06 -07:00
2011-01-07 17:50:28 +11:00
2007-10-22 08:13:21 -07:00
2010-03-30 22:02:32 +09:00
2009-09-22 20:09:39 -07:00
2010-12-09 15:36:48 -08:00
2010-07-08 13:25:35 -07:00
2010-03-30 22:02:32 +09:00
2008-04-18 08:56:04 -07:00
2010-09-10 09:18:15 -07:00
2010-09-10 09:18:15 -07:00
2010-09-10 08:35:41 -07:00
2010-03-02 14:10:20 -08:00
2010-09-10 08:40:18 -07:00
2010-09-10 08:39:27 -07:00
2009-10-28 23:05:57 -07:00
2010-06-15 16:50:43 -07:00
2010-05-05 18:18:07 -07:00
2010-03-17 12:07:16 -07:00
2008-10-13 13:57:57 -07:00
2010-05-05 18:17:30 -07:00
2010-09-10 08:41:04 -07:00
2006-01-03 11:45:47 -08:00
2011-01-07 17:50:28 +11:00
2009-09-22 20:09:48 -07:00
2008-02-03 17:33:42 +02:00
2010-12-22 02:35:36 -08:00
2010-10-15 13:03:09 -07:00
2009-09-22 20:09:28 -07:00
2010-02-26 15:41:18 -08:00
2010-11-18 14:10:56 -08:00
2010-07-08 13:25:35 -07:00
2010-07-08 13:25:35 -07:00
2010-05-21 19:30:48 +02:00
2010-10-15 13:03:09 -07:00
2010-09-10 08:41:04 -07:00
2010-09-23 14:16:47 -07:00
2010-05-05 18:18:09 -07:00
2010-05-05 18:17:29 -07:00
2008-01-25 15:04:24 -08:00
2010-10-11 13:45:52 -07:00
2008-04-18 08:56:03 -07:00
2010-10-06 17:55:29 -07:00
2010-11-18 15:41:41 -08:00
2010-02-26 15:41:18 -08:00
2010-02-26 15:41:18 -08:00
2010-10-15 13:03:09 -07:00
2010-09-08 14:25:59 +08:00
2011-01-07 17:50:26 +11:00
2010-05-10 11:50:10 -07:00
2010-09-29 17:33:05 -07:00
2007-02-12 09:48:46 -08:00
2010-09-10 08:56:24 -07:00
2006-01-03 11:45:47 -08:00
2010-01-25 19:20:51 -08:00
2009-09-04 16:07:50 -07:00
2008-01-25 15:05:46 -08:00
2006-01-03 11:45:47 -08:00
2010-10-15 13:03:43 -07:00
2010-05-21 18:31:20 -04:00