eCryptfs: Clear i_nlink in rmdir
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Fri, 29 Apr 2011 21:26:27 +0000 (16:26 -0500)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Fri, 27 May 2011 16:46:14 +0000 (11:46 -0500)
commit07850552b92b3637fa56767b5e460b4238014447
tree2b3da6ab0f16a77492bb2d42a667f4c21d4b4f45
parent61c4f2c81c61f73549928dfd9f3e8f26aa36a8cf
eCryptfs: Clear i_nlink in rmdir

eCryptfs wasn't clearing the eCryptfs inode's i_nlink after a successful
vfs_rmdir() on the lower directory. This resulted in the inode evict and
destroy paths to be missed.

https://bugs.launchpad.net/ecryptfs/+bug/723518

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Cc: <stable@kernel.org>
fs/ecryptfs/inode.c