hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/mm/swap_cgroup.c
....@@ -171,9 +171,6 @@
171171 unsigned long length;
172172 struct swap_cgroup_ctrl *ctrl;
173173
174
- if (!do_swap_account)
175
- return 0;
176
-
177174 length = DIV_ROUND_UP(max_pages, SC_PER_PAGE);
178175 array_size = length * sizeof(void *);
179176
....@@ -208,9 +205,6 @@
208205 struct page **map;
209206 unsigned long i, length;
210207 struct swap_cgroup_ctrl *ctrl;
211
-
212
- if (!do_swap_account)
213
- return;
214208
215209 mutex_lock(&swap_cgroup_mutex);
216210 ctrl = &swap_cgroup_ctrl[type];