projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a28a15
)
[POWERPC] spufs: lockdep annotations for spufs_dir_close
author
Christoph Hellwig
<hch@lst.de>
Thu, 8 May 2008 05:29:12 +0000
(15:29 +1000)
committer
Jeremy Kerr
<jk@ozlabs.org>
Thu, 8 May 2008 05:29:12 +0000
(15:29 +1000)
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>
arch/powerpc/platforms/cell/spufs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/platforms/cell/spufs/inode.c
b/arch/powerpc/platforms/cell/spufs/inode.c
index 5faedf5a09a0c3ad52ccc3acff5f1ee3886a071c..f407b24718554f474a153dc9a66e93d88518739f 100644
(file)
--- 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)
parent = dir->d_parent->d_inode;
ctx = SPUFS_I(dir->d_inode)->i_ctx;
- mutex_lock
(&parent->i_mutex
);
+ mutex_lock
_nested(&parent->i_mutex, I_MUTEX_PARENT
);
ret = spufs_rmdir(parent, dir);
mutex_unlock(&parent->i_mutex);
WARN_ON(ret);