forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 ea08eeccae9297f7aabd2ef7f0c2517ac4549acc
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];