|
@@ -52,6 +52,7 @@
|
|
|
#include <linux/swapops.h>
|
|
|
#include <linux/hugetlb.h>
|
|
|
#include <linux/memory_hotplug.h>
|
|
|
+#include <linux/mm_inline.h>
|
|
|
#include "internal.h"
|
|
|
|
|
|
int sysctl_memory_failure_early_kill __read_mostly = 0;
|
|
@@ -1468,7 +1469,8 @@ int soft_offline_page(struct page *page, int flags)
|
|
|
put_page(page);
|
|
|
if (!ret) {
|
|
|
LIST_HEAD(pagelist);
|
|
|
-
|
|
|
+ inc_zone_page_state(page, NR_ISOLATED_ANON +
|
|
|
+ page_is_file_cache(page));
|
|
|
list_add(&page->lru, &pagelist);
|
|
|
ret = migrate_pages(&pagelist, new_page, MPOL_MF_MOVE_ALL,
|
|
|
0, true);
|