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)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Mon, 21 Feb 2011 20:46:36 +0000 (14:46 -0600)
commit55f9cf6bbaa682958a7dd2755f883b768270c3ce
tree64c105d0d8f361be09f7eb5a771515e16d4e14fa
parent323ef68faf1bbd9b1e66aea268fd09d358d7e8ab
eCryptfs: Copy up lower inode attrs in getattr

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

Cc: <stable@kernel.org>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
fs/ecryptfs/inode.c