]> www.infradead.org Git - users/jedix/linux-maple.git/commit
eCryptfs: Invalidate dcache entries when lower i_nlink is zero
authorTyler Hicks <tyhicks@canonical.com>
Wed, 5 Aug 2015 16:26:36 +0000 (11:26 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:26:15 +0000 (19:26 +0200)
commit22fda415e1316c6077277341cd5d8679f6f630fa
tree9f05709751cc7ab34c7e6abf8e74a478e350fe73
parentfeab9b2a1002c23d415f7a2db4f4777c60d3eb52
eCryptfs: Invalidate dcache entries when lower i_nlink is zero

commit 5556e7e6d30e8e9b5ee51b0e5edd526ee80e5e36 upstream.

Consider eCryptfs dcache entries to be stale when the corresponding
lower inode's i_nlink count is zero. This solves a problem caused by the
lower inode being directly modified, without going through the eCryptfs
mount, leaving stale eCryptfs dentries cached and the eCryptfs inode's
i_nlink count not being cleared.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Reported-by: Richard Weinberger <richard@nod.at>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ecryptfs/dentry.c