Skip to content

Commit

Permalink
ovl: do not copy attr several times
Browse files Browse the repository at this point in the history
In ovl_xattr_set() we have already copied attr of real inode
so no need to copy it again in ovl_posix_acl_xattr_set().

Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
  • Loading branch information
Chengguang Xu authored and Miklos Szeredi committed Apr 12, 2021
1 parent c68e7ec commit 568edee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/overlayfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1052,9 +1052,6 @@ ovl_posix_acl_xattr_set(const struct xattr_handler *handler,
}

err = ovl_xattr_set(dentry, inode, handler->name, value, size, flags);
if (!err)
ovl_copyattr(ovl_inode_real(inode), inode);

return err;

out_acl_release:
Expand Down

0 comments on commit 568edee

Please sign in to comment.