diff options
author | 2021-02-26 17:24:17 +0800 | |
---|---|---|
committer | 2021-04-12 12:00:37 +0200 | |
commit | 568edee485a4b4f138eb8cea9e532b3fb6fdd5fe (patch) | |
tree | 9310a759574a5d0cae94e611f858f4fe6f7be449 | |
parent | ovl: remove ovl_map_dev_ino() return value (diff) | |
download | linux-dev-568edee485a4b4f138eb8cea9e532b3fb6fdd5fe.tar.xz linux-dev-568edee485a4b4f138eb8cea9e532b3fb6fdd5fe.zip |
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 <cgxu519@mykernel.net>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r-- | fs/overlayfs/super.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 3f6333b32797..4a60bcc0eea3 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -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: |