mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
mm: memcontrol: fix swap counter leak from offline cgroup
commit73f839b6d2
addressed an issue regarding the swap counter leak that occurred from an offline cgroup. However, commit89ce924f0b
modified the parameter from @swap_memcg to @memcg (presumably this alteration was introduced while resolving conflicts). Fix this problem by reverting this minor change. Link: https://lkml.kernel.org/r/20250410081812.10073-1-songmuchun@bytedance.com Fixes:89ce924f0b
("mm: memcontrol: move memsw charge callbacks to v1") Signed-off-by: Muchun Song <songmuchun@bytedance.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Shakeel Butt <shakeel.butt@linux.dev> Acked-by: Roman Gushchin <roman.gushchin@linux.dev> Cc: Michal Hocko <mhocko@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
5e610c8c09
commit
6b956934ad
|
@ -620,7 +620,7 @@ void memcg1_swapout(struct folio *folio, swp_entry_t entry)
|
|||
mem_cgroup_id_get_many(swap_memcg, nr_entries - 1);
|
||||
mod_memcg_state(swap_memcg, MEMCG_SWAP, nr_entries);
|
||||
|
||||
swap_cgroup_record(folio, mem_cgroup_id(memcg), entry);
|
||||
swap_cgroup_record(folio, mem_cgroup_id(swap_memcg), entry);
|
||||
|
||||
folio_unqueue_deferred_split(folio);
|
||||
folio->memcg_data = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user