Merge "mem-offline: increment the NR_ISOLATED_ANON stat properly"

This commit is contained in:
qctecmdr 2020-11-27 15:17:16 -08:00 • committed by Gerrit - the friendly Code Review server
commit 93e8db43d7

View file

@ -8,6 +8,7 @@
#include <linux/memblock.h>
#include <linux/mmu_context.h>
#include <linux/mmzone.h>
#include <linux/mm_inline.h>
#include <linux/ktime.h>
#include <linux/of.h>
#include <linux/proc_fs.h>
@ -538,6 +539,8 @@ static unsigned long get_anon_movable_pages(
ret = isolate_lru_page(page);
if (!ret) {
list_add_tail(&page->lru, list);
inc_node_page_state(page, NR_ISOLATED_ANON +
page_is_file_cache(page));
++fc->nr_migrate_pages;
}