projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f70c81d
)
[PATCH] ecryptfs: nested locking annotation
author
Peter Zijlstra
<a.p.zijlstra@chello.nl>
Thu, 8 Mar 2007 04:41:30 +0000
(20:41 -0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Thu, 8 Mar 2007 15:39:16 +0000
(07:39 -0800)
ecryptfs uses a lock_parent() function, which I hope really locks the parents
and is not abused
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/ecryptfs/inode.c
b/fs/ecryptfs/inode.c
index e62f3fc7241edcb9f03ce1e87812e3c9fe0b9bd6..1548be26b5e61060ee5c5eb440209bd98b850724 100644
(file)
--- a/
fs/ecryptfs/inode.c
+++ b/
fs/ecryptfs/inode.c
@@
-38,7
+38,7
@@
static struct dentry *lock_parent(struct dentry *dentry)
struct dentry *dir;
dir = dget(dentry->d_parent);
- mutex_lock
(&(dir->d_inode->i_mutex)
);
+ mutex_lock
_nested(&(dir->d_inode->i_mutex), I_MUTEX_PARENT
);
return dir;
}