Unionfs: don't copy parent inode times in setattr
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 06:14:30 +0000 (02:14 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 06:14:30 +0000 (02:14 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c

index 4ebc40a95a26bf43ac6d9db932f4f59fc56f9317..1aa46acf50117b37464a616edc2c7cd63c983354 100644 (file)
@@ -1057,8 +1057,7 @@ static int unionfs_setattr(struct dentry *dentry, struct iattr *ia)
        if (ia->ia_valid & ATTR_ATIME_SET)
                inode->i_atime = lower_inode->i_atime;
        fsstack_copy_inode_size(inode, lower_inode);
-       /* if setattr succeeded, then parent dir may have changed */
-       unionfs_copy_attr_times(dentry->d_parent->d_inode);
+
 out:
        if (!err)
                unionfs_check_dentry(dentry);