Message ID | 1458158763-9614-49-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c index 8525e67..e7a505c 100644 --- a/fs/overlayfs/inode.c +++ b/fs/overlayfs/inode.c @@ -55,6 +55,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);