fs: dcache scale dentry refcount
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:49:32 +0000 (17:49 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:21 +0000 (17:50 +1100)
commitb7ab39f631f505edc2bbdb86620d5493f995c9da
tree62be97ebc7fc69ceb601f23312d335ebb8038ee7
parent2304450783dfde7b0b94ae234edd0dbffa865073
fs: dcache scale dentry refcount

Make d_count non-atomic and protect it with d_lock. This allows us to ensure a
0 refcount dentry remains 0 without dcache_lock. It is also fairly natural when
we start protecting many other dentry members with d_lock.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
21 files changed:
arch/powerpc/platforms/cell/spufs/inode.c
drivers/infiniband/hw/ipath/ipath_fs.c
drivers/infiniband/hw/qib/qib_fs.c
fs/autofs4/expire.c
fs/autofs4/root.c
fs/ceph/dir.c
fs/ceph/inode.c
fs/ceph/mds_client.c
fs/coda/dir.c
fs/configfs/dir.c
fs/configfs/inode.c
fs/dcache.c
fs/ecryptfs/inode.c
fs/locks.c
fs/namei.c
fs/nfs/dir.c
fs/nfs/unlink.c
fs/nfsd/vfs.c
fs/nilfs2/super.c
include/linux/dcache.h
kernel/cgroup.c