mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "mem-offline: increment the NR_ISOLATED_ANON stat properly"
This commit is contained in:
commit
93e8db43d7
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue