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

Commit 00ea36d5 authored by Sudarshan Rajagopalan's avatar Sudarshan Rajagopalan Committed by Swathi Sridhar
Browse files

mm: put pages into alloc state after offline



When the pages are taken out of buddy list during memory offline,
put the pages into alloc state which the free_pages expects it to
be when onlining these pages.

Change-Id: I04b735a8089a9c4a91131fe8aa95625ce8904c57
Signed-off-by: default avatarSudarshan Rajagopalan <sudaraja@codeaurora.org>
parent c19fb3d1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8087,6 +8087,7 @@ __offline_isolated_pages(unsigned long start_pfn, unsigned long end_pfn)
		zone->free_area[order].nr_free--;
		for (i = 0; i < (1 << order); i++)
			SetPageReserved((page+i));
		post_alloc_hook(page, order, GFP_KERNEL);
		pfn += (1 << order);
	}
	spin_unlock_irqrestore(&zone->lock, flags);