ovl: do not copy attr several times
RFC PATCH 1/1 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 Chengguang Xu <[email protected]>
--- fs/overlayfs/super.c | 3 --- 1 file changed, 3 deletions(-)
fs/overlayfs/super.c +0 -3
@@ -1035,9 +1035,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:
Signature · 1 line
2.27.0
Quoted 3 lines · Chengguang Xu
In
ovl_xattr_set()we have already copied attr of real inode so no need to copy it again inovl_posix_acl_xattr_set().
Thanks, applied.
Miklos