]> git.karo-electronics.de Git - karo-tx-linux.git/commit
eCryptfs: Copy up lower inode attrs in getattr
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Tue, 11 Jan 2011 18:43:42 +0000 (12:43 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:45:13 +0000 (12:45 -0700)
commit3cb905a9fcaf1f33feb3593e2b00df3b03405f4e
treebb8f01311c8716c62a5c3bef9372b43dd27fece9
parent168f7a99fcd92f46e643e165f752150e537e1588
eCryptfs: Copy up lower inode attrs in getattr

commit 55f9cf6bbaa682958a7dd2755f883b768270c3ce upstream.

The lower filesystem may do some type of inode revalidation during a
getattr call. eCryptfs should take advantage of that by copying the
lower inode attributes to the eCryptfs inode after a call to
vfs_getattr() on the lower inode.

I originally wrote this fix while working on eCryptfs on nfsv3 support,
but discovered it also fixed an eCryptfs on ext4 nanosecond timestamp
bug that was reported.

https://bugs.launchpad.net/bugs/613873

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ecryptfs/inode.c