ecryptfs: clean up (un)lock_parent
authorMiklos Szeredi <mszeredi@suse.cz>
Sun, 8 Jun 2008 08:59:23 +0000 (10:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 16 Jun 2008 20:19:50 +0000 (13:19 -0700)
commit0daa6dfc3879ecd7c455b9facc60290070273971
tree712c325e7c2abb653e186a1bd40b633ca3f756e7
parentb2c908b6b75478eb7cd88bfc69b85082444574d2
ecryptfs: clean up (un)lock_parent

upstream commit: 8dc4e37362a5dc910d704d52ac6542bfd49ddc2f

dget(dentry->d_parent) --> dget_parent(dentry)

unlock_parent() is racy and unnecessary.  Replace single caller with
unlock_dir().

There are several other suspect uses of ->d_parent in ecryptfs...

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Michael Halcrow <mhalcrow@us.ibm.com>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
fs/ecryptfs/inode.c