diff options
Diffstat (limited to 'mm/page_cgroup.c')
-rw-r--r-- | mm/page_cgroup.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mm/page_cgroup.c b/mm/page_cgroup.c index 672089d5819f..f22b4ebbd8dc 100644 --- a/mm/page_cgroup.c +++ b/mm/page_cgroup.c | |||
@@ -311,8 +311,6 @@ static int swap_cgroup_prepare(int type) | |||
311 | struct swap_cgroup_ctrl *ctrl; | 311 | struct swap_cgroup_ctrl *ctrl; |
312 | unsigned long idx, max; | 312 | unsigned long idx, max; |
313 | 313 | ||
314 | if (!do_swap_account) | ||
315 | return 0; | ||
316 | ctrl = &swap_cgroup_ctrl[type]; | 314 | ctrl = &swap_cgroup_ctrl[type]; |
317 | 315 | ||
318 | for (idx = 0; idx < ctrl->length; idx++) { | 316 | for (idx = 0; idx < ctrl->length; idx++) { |
@@ -349,9 +347,6 @@ unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id) | |||
349 | struct swap_cgroup *sc; | 347 | struct swap_cgroup *sc; |
350 | unsigned short old; | 348 | unsigned short old; |
351 | 349 | ||
352 | if (!do_swap_account) | ||
353 | return 0; | ||
354 | |||
355 | ctrl = &swap_cgroup_ctrl[type]; | 350 | ctrl = &swap_cgroup_ctrl[type]; |
356 | 351 | ||
357 | mappage = ctrl->map[idx]; | 352 | mappage = ctrl->map[idx]; |
@@ -380,9 +375,6 @@ unsigned short lookup_swap_cgroup(swp_entry_t ent) | |||
380 | struct swap_cgroup *sc; | 375 | struct swap_cgroup *sc; |
381 | unsigned short ret; | 376 | unsigned short ret; |
382 | 377 | ||
383 | if (!do_swap_account) | ||
384 | return 0; | ||
385 | |||
386 | ctrl = &swap_cgroup_ctrl[type]; | 378 | ctrl = &swap_cgroup_ctrl[type]; |
387 | mappage = ctrl->map[idx]; | 379 | mappage = ctrl->map[idx]; |
388 | sc = page_address(mappage); | 380 | sc = page_address(mappage); |