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

Commit 58a8da8b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm/page_alloc: add freepage on isolate pageblock to correct buddy list."

parents e4d86d21 0fc25d4d
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -701,8 +701,14 @@ static void free_pcppages_bulk(struct zone *zone, int count,
			/* must delete as __free_one_page list manipulates */
			list_del(&page->lru);
			mt = get_freepage_migratetype(page);
			if (unlikely(has_isolate_pageblock(zone)))
			if (unlikely(has_isolate_pageblock(zone))) {
				mt = get_pageblock_migratetype(page);
				if (is_migrate_isolate(mt))
					goto skip_counting;
			}
			__mod_zone_freepage_state(zone, 1, mt);

skip_counting:
			/* MIGRATE_MOVABLE list may include MIGRATE_RESERVEs */
			__free_one_page(page, zone, 0, mt);
			trace_mm_page_pcpu_drain(page, 0, mt);