diff options
| author | Liu Shixin <[email protected]> | 2023-09-15 18:58:45 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-10-06 14:44:10 -0700 |
| commit | 840ea53a8dec3aa5773f7957d4eaafdf925c664a (patch) | |
| tree | 10f9c6332f48afc8270a5b75535aa5085e1fe26a /include/linux | |
| parent | 72a14e821cba73f74aca4bc5f768d77dece8bdb2 (diff) | |
memcg: remove unused do_memsw_account in memcg1_stat_format
Since commit b25806dcd3d5("mm: memcontrol: deprecate swapaccounting=0
mode") do_memsw_account() is synonymous with
!cgroup_subsys_on_dfl(memory_cgrp_subsys), It always equals true in
memcg1_stat_format(). Remove the unused code.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Liu Shixin <[email protected]>
Suggested-by: Michal Koutný <[email protected]>
Reviewed-by: Yosry Ahmed <[email protected]>
Acked-by: Tejun heo <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Roman Gushchin <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Zefan Li <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions