diff options
author | Christoph Hellwig <hch@lst.de> | 2008-05-08 01:29:12 -0400 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-05-08 01:29:12 -0400 |
commit | 02539d71fa98d5737bb668b02286c76241e4bac9 (patch) | |
tree | b7da735722b2356e61f5296ed4d8b2f828393495 /arch/powerpc | |
parent | 7a28a1549f9514f3b0dd3dde5c7337ba5d44fba3 (diff) |
[POWERPC] spufs: lockdep annotations for spufs_dir_close
We need to acquire the parent i_mutex with I_MUTEX_PARENT to keep
lockdep happy.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'arch/powerpc')
-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 5faedf5a09a0..f407b2471855 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
@@ -224,7 +224,7 @@ static int spufs_dir_close(struct inode *inode, struct file *file) | |||
224 | parent = dir->d_parent->d_inode; | 224 | parent = dir->d_parent->d_inode; |
225 | ctx = SPUFS_I(dir->d_inode)->i_ctx; | 225 | ctx = SPUFS_I(dir->d_inode)->i_ctx; |
226 | 226 | ||
227 | mutex_lock(&parent->i_mutex); | 227 | mutex_lock_nested(&parent->i_mutex, I_MUTEX_PARENT); |
228 | ret = spufs_rmdir(parent, dir); | 228 | ret = spufs_rmdir(parent, dir); |
229 | mutex_unlock(&parent->i_mutex); | 229 | mutex_unlock(&parent->i_mutex); |
230 | WARN_ON(ret); | 230 | WARN_ON(ret); |