1
0
Fork 0
alistair23-linux/fs/hpfs
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 BKL: introduce CONFIG_BKL. 2010-10-21 15:44:13 +02:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
alloc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
anode.c sanitize signedness/const for pointers to char in hpfs a bit 2010-03-03 14:07:57 -05:00
buffer.c hpfs: Convert sbi->hpfs_creation_de to mutex 2010-10-30 10:12:03 +02:00
dentry.c fs: dcache reduce branches in lookup path 2011-01-07 17:50:28 +11:00
dir.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
dnode.c sanitize signedness/const for pointers to char in hpfs a bit 2010-03-03 14:07:57 -05:00
ea.c sanitize signedness/const for pointers to char in hpfs a bit 2010-03-03 14:07:57 -05:00
file.c get rid of cont_write_begin_newtrunc 2010-08-09 16:47:31 -04:00
hpfs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hpfs_fn.h hpfs: Convert sbi->hpfs_creation_de to mutex 2010-10-30 10:12:03 +02:00
inode.c switch hpfs to ->evict_inode() 2010-08-09 16:48:17 -04:00
map.c sanitize signedness/const for pointers to char in hpfs a bit 2010-03-03 14:07:57 -05:00
name.c sanitize signedness/const for pointers to char in hpfs a bit 2010-03-03 14:07:57 -05:00
namei.c Don't mess with generic_permission() under ->d_lock in hpfs 2010-03-03 14:07:58 -05:00
super.c fs: icache RCU free inodes 2011-01-07 17:50:26 +11:00