linux-stable-rt/fs/ecryptfs
Tyler Hicks 5be79de2e1 eCryptfs: Flush dirty pages in setattr
After 57db4e8d73 changed eCryptfs to
write-back caching, eCryptfs page writeback updates the lower inode
times due to the use of vfs_write() on the lower file.

To preserve inode metadata changes, such as 'cp -p' does with
utimensat(), we need to flush all dirty pages early in
ecryptfs_setattr() so that the user-updated lower inode metadata isn't
clobbered later in writeback.

https://bugzilla.kernel.org/show_bug.cgi?id=33372

Reported-by: Rocko <rockorequin@hotmail.com>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
2011-04-25 18:49:46 -05:00
..
Kconfig
Makefile
crypto.c eCryptfs: Handle failed metadata read in lookup 2011-04-25 18:45:06 -05:00
debug.c
dentry.c
ecryptfs_kernel.h eCryptfs: Handle failed metadata read in lookup 2011-04-25 18:45:06 -05:00
file.c eCryptfs: Handle failed metadata read in lookup 2011-04-25 18:45:06 -05:00
inode.c eCryptfs: Flush dirty pages in setattr 2011-04-25 18:49:46 -05:00
keystore.c eCryptfs: write lock requested keys 2011-03-28 01:49:43 -05:00
kthread.c eCryptfs: Add reference counting to lower files 2011-04-25 18:32:37 -05:00
main.c eCryptfs: Add reference counting to lower files 2011-04-25 18:32:37 -05:00
messaging.c
miscdev.c
mmap.c eCryptfs: Unlock page in write_begin error path 2011-03-28 01:47:46 -05:00
read_write.c ecryptfs: modify write path to encrypt page in writepage 2011-03-28 01:47:45 -05:00
super.c eCryptfs: Add reference counting to lower files 2011-04-25 18:32:37 -05:00