diff options
author | Nick Piggin <npiggin@suse.de> | 2010-01-29 15:38:21 -0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-04-27 17:32:31 +0200 |
commit | 5c0eb5cec064ce26ffcd0cdd684c9b6dd7c9074e (patch) | |
tree | b216db850b878a1c2a3bcb3d29265efc9a73b927 /arch | |
parent | 0bce328eda17e71b1e027bc867bef7ec08360c3d (diff) | |
download | lwn-5c0eb5cec064ce26ffcd0cdd684c9b6dd7c9074e.tar.gz lwn-5c0eb5cec064ce26ffcd0cdd684c9b6dd7c9074e.zip |
fs-dcache-scale-d_count
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.
XXX: This patch does not boot on its own
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index fc1b1c42b1dc..a8bc4808e411 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c @@ -161,7 +161,7 @@ static void spufs_prune_dir(struct dentry *dir) spin_lock(&dcache_lock); spin_lock(&dentry->d_lock); if (!(d_unhashed(dentry)) && dentry->d_inode) { - dget_locked(dentry); + dget_locked_dlock(dentry); __d_drop(dentry); spin_unlock(&dentry->d_lock); simple_unlink(dir->d_inode, dentry); |