X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=fs%2Fecryptfs%2Fdentry.c;h=52d1e36dc746a54182c2a68bf8aad19b1e1b0dbc;hb=4a89c2562cb81c24c515b9de041aced4d21cb6d1;hp=0b9992ab990f4cab4983a89aa4eb4f4026a1820b;hpb=d5b9b787b5e1618dfe82a2c2a6972374e85b02db;p=linux-2.6-omap-h63xx.git diff --git a/fs/ecryptfs/dentry.c b/fs/ecryptfs/dentry.c index 0b9992ab990..52d1e36dc74 100644 --- a/fs/ecryptfs/dentry.c +++ b/fs/ecryptfs/dentry.c @@ -57,6 +57,12 @@ static int ecryptfs_d_revalidate(struct dentry *dentry, struct nameidata *nd) rc = lower_dentry->d_op->d_revalidate(lower_dentry, nd); nd->dentry = dentry_save; nd->mnt = vfsmount_save; + if (dentry->d_inode) { + struct inode *lower_inode = + ecryptfs_inode_to_lower(dentry->d_inode); + + ecryptfs_copy_attr_all(dentry->d_inode, lower_inode); + } out: return rc; }