Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 619b2385 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mem-offline: disallow page migration to isolated page blocks"

parents 1108203d ff56a975
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
#include <linux/vmstat.h>
#include <linux/mailbox_client.h>
#include <linux/mailbox/qmp.h>
#include <linux/page-isolation.h>
#include <asm/tlbflush.h>
#include <asm/cacheflush.h>
#include <soc/qcom/rpm-smd.h>
@@ -460,6 +461,12 @@ static void isolate_free_pages(struct movable_zone_fill_control *fc)
			continue;
		}

		if (!(start_pfn % pageblock_nr_pages) &&
			is_migrate_isolate_page(page)) {
			start_pfn += pageblock_nr_pages - 1;
			continue;
		}

		if (!PageBuddy(page))
			continue;