From ed36ae6ac652f82b5ebd7a19563a19b69b98d8de Mon Sep 17 00:00:00 2001 From: lk_hauwei Date: Tue, 9 Aug 2022 16:02:27 +0800 Subject: [PATCH] mm: fix the lru_size update error when enable CONFIG_HYPERHOLD_FILE_LRU ohos inclusion category: bugfix issue: #I5G0TK CVE: NA -------------------------------- Fix the lru_size update error when enable CONFIG_HYPERHOLD_FILE_LRU. Signed-off-by: lk_hauwei --- mm/memcontrol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index ca783e99935e..c559a3584ced 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1369,8 +1369,8 @@ struct lruvec *mem_cgroup_page_lruvec(struct page *page, struct pglist_data *pgd } #ifdef CONFIG_HYPERHOLD_FILE_LRU - if (is_file_lru(page_lru(page)) && - !is_prot_page(page)) { + if (page_is_file_lru(page) && + !is_prot_page(page)) { lruvec = node_lruvec(pgdat); goto out; } -- Gitee