linux/fs/hfsplus
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
..
Kconfig fs/Kconfig: move hfs, hfsplus out 2009-01-22 13:15:57 +03:00
Makefile
bfind.c hfsplus: handle more on-disk corruptions without oopsing 2010-10-14 09:53:48 -04:00
bitmap.c hfsplus: fix HFSPLUS_SB calling convention 2010-10-01 05:42:59 +02:00
bnode.c
brec.c hfsplus: validate btree flags 2010-10-14 09:54:23 -04:00
btree.c hfsplus: validate btree flags 2010-10-14 09:54:23 -04:00
catalog.c hfsplus: create correct initial catalog entries for device files 2010-10-14 09:54:39 -04:00
dir.c fs: dcache reduce branches in lookup path 2011-01-07 17:50:28 +11:00
extents.c hfsplus: add missing extent locking in hfsplus_write_inode 2010-10-01 05:46:31 +02:00
hfsplus_fs.h fs: change d_hash for rcu-walk 2011-01-07 17:50:20 +11:00
hfsplus_raw.h hfsplus: handle more on-disk corruptions without oopsing 2010-10-14 09:53:48 -04:00
inode.c list.h: new helper - hlist_add_fake() 2010-10-25 21:24:15 -04:00
ioctl.c hfsplus: fix double lock typo in ioctl 2010-10-25 20:39:07 +02:00
options.c hfsplus: use atomic bitops for the superblock flags 2010-10-01 05:45:20 +02:00
part_tbl.c hfsplus: fix HFSPLUS_SB calling convention 2010-10-01 05:42:59 +02:00
super.c fs: dcache reduce branches in lookup path 2011-01-07 17:50:28 +11:00
tables.c
unicode.c fs: change d_hash for rcu-walk 2011-01-07 17:50:20 +11:00
wrapper.c hfsplus: use atomic bitops for the superblock flags 2010-10-01 05:45:20 +02:00