Message ID | 1458084369-21053-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c index 34300c2..0d28234 100644 --- a/fs/overlayfs/inode.c +++ b/fs/overlayfs/inode.c @@ -68,6 +68,8 @@ int ovl_setattr(struct dentry *dentry, struct iattr *attr) mutex_lock(&upperdentry->d_inode->i_mutex); err = notify_change(upperdentry, attr, NULL); + if (!err) + ovl_copyattr(upperdentry->d_inode, dentry->d_inode); mutex_unlock(&upperdentry->d_inode->i_mutex); } ovl_drop_write(dentry);