aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2010-01-29 18:38:28 -0500
committerThomas Gleixner <tglx@linutronix.de>2010-04-27 11:32:42 -0400
commit1bb96f6d4dece641a9e9d7b97b109f6930967067 (patch)
tree25ee49409c0322ebcfd5c9d216bc2cfd11b5ff65 /arch
parent81d2f3cb75bf112a21fad52e9d3e3a1d7d0c907d (diff)
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)
1548 if (ctx->owner != current->mm) 1548 if (ctx->owner != current->mm)
1549 return -EINVAL; 1549 return -EINVAL;
1550 1550
1551 if (atomic_read(&inode->i_count) != 1) 1551 if (inode->i_count != 1)
1552 return -EBUSY; 1552 return -EBUSY;
1553 1553
1554 mutex_lock(&ctx->mapping_lock); 1554 mutex_lock(&ctx->mapping_lock);