Skip to content
Snippets Groups Projects
Commit edc25b11 authored by Liu Shixin's avatar Liu Shixin Committed by Cheng Jian
Browse files

mm/vmscan: fix uncleaned mem_cgroup_uncharge

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I3CG47


CVE: NA

-------------------------------------------------

Patch a222f341 ("mm: generalize putback scan functions") has combined
move_active_pages_to_lru() and putback_inactive_pages() into single move_pages_to_lru().
But we didn't backport this patch so move_active_pages_to_lru() is still existed.
When We moved mem_cgroup_uncharge() in 7ae88534 ("mm: move mem_cgroup_uncharge
out of __page_cache_release()"), move_active_pages_to_lru() should be changed together.

Fixes: 7ae88534 ("mm: move mem_cgroup_uncharge out of __page_cache_release()")
Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent a932847b
No related branches found
Tags 4.19.90-2103.4.0
No related merge requests found
......@@ -2067,7 +2067,6 @@ static unsigned move_active_pages_to_lru(struct lruvec *lruvec,
if (unlikely(PageCompound(page))) {
spin_unlock_irq(&pgdat->lru_lock);
mem_cgroup_uncharge(page);
(*get_compound_page_dtor(page))(page);
spin_lock_irq(&pgdat->lru_lock);
} else
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment