eCryptfs: Copy up lower inode attrs in getattr
commitde009baa36ee44f5218220a1a8b41153b68a4cb5
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Tue, 11 Jan 2011 18:43:42 +0000 (11 12:43 -0600)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:58:09 +0000 (31 11:58 -0700)
tree062860c441667512bc5078bd553b63ceb677b337
parentfe5d03ded1703844bb0d05219a4de9d071b7046b
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
fs/ecryptfs/inode.c