projects
/
users
/
hch
/
xfs.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fbf718
)
cgroup/cpuset: Remove unnecessary zeroing
author
Xiu Jianfeng <xiujianfeng@huawei.com>
Sat, 25 May 2024 09:44:03 +0000
(09:44 +0000)
committer
Tejun Heo <tj@kernel.org>
Sun, 26 May 2024 18:28:30 +0000
(08:28 -1000)
The struct cpuset is kzalloc'd, all the members are zeroed already,
so don't need nodes_clear() here.
No functional changes intended.
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c
patch
|
blob
|
history
diff --git
a/kernel/cgroup/cpuset.c
b/kernel/cgroup/cpuset.c
index c12b9fdb22a4e3105f789a07e3ddbef9d1c375b9..a553e3d46498d34c8c473d8ded3c449f01581c04 100644
(file)
--- a/
kernel/cgroup/cpuset.c
+++ b/
kernel/cgroup/cpuset.c
@@
-4009,8
+4009,6
@@
cpuset_css_alloc(struct cgroup_subsys_state *parent_css)
}
__set_bit(CS_SCHED_LOAD_BALANCE, &cs->flags);
- nodes_clear(cs->mems_allowed);
- nodes_clear(cs->effective_mems);
fmeter_init(&cs->fmeter);
cs->relax_domain_level = -1;
INIT_LIST_HEAD(&cs->remote_sibling);