Searched refs:swap_memcg (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/mm/ |
H A D | memcontrol.c | 7310 struct mem_cgroup *memcg, *swap_memcg; in mem_cgroup_swapout() local 7331 swap_memcg = mem_cgroup_id_get_online(memcg); in mem_cgroup_swapout() 7335 mem_cgroup_id_get_many(swap_memcg, nr_entries - 1); in mem_cgroup_swapout() 7336 oldid = swap_cgroup_record(entry, mem_cgroup_id(swap_memcg), in mem_cgroup_swapout() 7339 mod_memcg_state(swap_memcg, MEMCG_SWAP, nr_entries); in mem_cgroup_swapout() 7346 if (!cgroup_memory_noswap && memcg != swap_memcg) { in mem_cgroup_swapout() 7347 if (!mem_cgroup_is_root(swap_memcg)) in mem_cgroup_swapout() 7348 page_counter_charge(&swap_memcg->memsw, nr_entries); in mem_cgroup_swapout()
|
/kernel/linux/linux-6.6/mm/ |
H A D | memcontrol.c | 7516 struct mem_cgroup *memcg, *swap_memcg; in mem_cgroup_swapout() local 7540 swap_memcg = mem_cgroup_id_get_online(memcg); in mem_cgroup_swapout() 7544 mem_cgroup_id_get_many(swap_memcg, nr_entries - 1); in mem_cgroup_swapout() 7545 oldid = swap_cgroup_record(entry, mem_cgroup_id(swap_memcg), in mem_cgroup_swapout() 7548 mod_memcg_state(swap_memcg, MEMCG_SWAP, nr_entries); in mem_cgroup_swapout() 7555 if (memcg != swap_memcg) { in mem_cgroup_swapout() 7556 if (!mem_cgroup_is_root(swap_memcg)) in mem_cgroup_swapout() 7557 page_counter_charge(&swap_memcg->memsw, nr_entries); in mem_cgroup_swapout()
|
Completed in 18 milliseconds