fs: dcache per-inode inode alias locking
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:06 +0000 (17:50 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:31 +0000 (17:50 +1100)
commit873feea09ebc980cbd3631b767356ce1eee65ec1
tree59a8fce9b138086abee7cf845f62ff70a390cf81
parentceb5bdc2d246f6d81cf61ed70f325308a11821d2
fs: dcache per-inode inode alias locking

dcache_inode_lock can be replaced with per-inode locking. Use existing
inode->i_lock for this. This is slightly non-trivial because we sometimes
need to find the inode from the dentry, which requires d_inode to be
stabilised (either with refcount or d_lock).

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
fs/9p/vfs_inode.c
fs/affs/amigaffs.c
fs/cifs/inode.c
fs/dcache.c
fs/exportfs/expfs.c
fs/nfs/getroot.c
fs/notify/fsnotify.c
fs/ocfs2/dcache.c
include/linux/dcache.h