android_kernel_google_msm/fs/ecryptfs
Tyler Hicks e770b6a84b 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>
[bwh: Backported to 3.2:
 - Test d_revalidate pointer directly rather than a DCACHE_OP flag
 - Open-code d_inode()
 - Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2016-04-27 18:55:16 +08:00
..
crypto.c eCryptfs: Remove buggy and unnecessary write in file name decode routine 2015-04-14 17:33:43 +08:00
debug.c
dentry.c eCryptfs: Invalidate dcache entries when lower i_nlink is zero 2016-04-27 18:55:16 +08:00
ecryptfs_kernel.h eCryptfs: Initialize empty lower files when opening them 2012-10-21 09:28:01 -07:00
file.c eCryptfs: don't pass fs-specific ioctl commands through 2015-06-19 11:40:20 +08:00
inode.c ecryptfs: avoid to access NULL pointer when write metadata in xattr 2015-02-02 17:04:47 +08:00
Kconfig eCryptfs: fix compile error 2011-08-09 13:42:46 -05:00
keystore.c ecryptfs: Fix memory leakage in keystore.c 2014-06-07 16:02:04 -07:00
kthread.c eCryptfs: Properly check for O_RDONLY flag before doing privileged open 2012-07-16 09:04:26 -07:00
main.c eCryptfs: Force RO mount when encrypted view is enabled 2015-04-14 17:33:40 +08:00
Makefile
messaging.c
miscdev.c eCryptfs: Fix lockdep warning in miscdev operations 2012-07-16 09:04:26 -07:00
mmap.c eCryptfs: Revert to a writethrough cache model 2012-10-21 09:28:01 -07:00
read_write.c ecryptfs: remove the second argument of k[un]map_atomic() 2012-02-16 16:06:27 -06:00
super.c ecryptfs: don't bother with ->drop_inode() 2012-03-20 21:29:33 -04:00