ecryptfs: clean up (un)lock_parent
commit8dc4e37362a5dc910d704d52ac6542bfd49ddc2f
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 12 May 2008 21:02:04 +0000 (12 14:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 May 2008 15:02:23 +0000 (13 08:02 -0700)
tree22f9a2e074a7718c90747bc0458845f54468d4fc
parent64d032ba434ad41586460811148f01511e5612f9
ecryptfs: clean up (un)lock_parent

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>
fs/ecryptfs/inode.c