Skip to content
Snippets Groups Projects
Commit 568edee4 authored by Chengguang Xu's avatar Chengguang Xu Committed by Miklos Szeredi
Browse files

ovl: do not copy attr several times


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: default avatarChengguang Xu <cgxu519@mykernel.net>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent c68e7ec5
Branches
Tags
No related merge requests found
...@@ -1052,9 +1052,6 @@ ovl_posix_acl_xattr_set(const struct xattr_handler *handler, ...@@ -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); err = ovl_xattr_set(dentry, inode, handler->name, value, size, flags);
if (!err)
ovl_copyattr(ovl_inode_real(inode), inode);
return err; return err;
out_acl_release: out_acl_release:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment