[PATCH] ecryptfs: nested locking annotation

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>

authored by Peter Zijlstra and committed by Linus Torvalds 908e0a8a f70c81d4

+1 -1
+1 -1
fs/ecryptfs/inode.c
··· 38 38 struct dentry *dir; 39 39 40 40 dir = dget(dentry->d_parent); 41 - mutex_lock(&(dir->d_inode->i_mutex)); 41 + mutex_lock_nested(&(dir->d_inode->i_mutex), I_MUTEX_PARENT); 42 42 return dir; 43 43 } 44 44