summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2010-01-29 15:38:28 -0800
committerThomas Gleixner <tglx@linutronix.de>2010-04-27 17:32:42 +0200
commit1bb96f6d4dece641a9e9d7b97b109f6930967067 (patch)
tree25ee49409c0322ebcfd5c9d216bc2cfd11b5ff65 /arch
parent81d2f3cb75bf112a21fad52e9d3e3a1d7d0c907d (diff)
downloadlwn-1bb96f6d4dece641a9e9d7b97b109f6930967067.tar.gz
lwn-1bb96f6d4dece641a9e9d7b97b109f6930967067.zip
fs-inode_lock-scale-4
Protect inode->i_count with i_lock, rather than having it atomic. Next step should also be to move things together (eg. the refcount increment into d_instantiate, which will remove a lock/unlock cycle on i_lock). 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/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c
index 64a4c2d85f7c..f078fe70d3cd 100644
--- a/arch/powerpc/platforms/cell/spufs/file.c
+++ b/arch/powerpc/platforms/cell/spufs/file.c
@@ -1548,7 +1548,7 @@ static int spufs_mfc_open(struct inode *inode, struct file *file)
if (ctx->owner != current->mm)
return -EINVAL;
- if (atomic_read(&inode->i_count) != 1)
+ if (inode->i_count != 1)
return -EBUSY;
mutex_lock(&ctx->mapping_lock);