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

Commit 28de217f authored by Sudarshan Rajagopalan's avatar Sudarshan Rajagopalan Committed by Ashwini Muduganti
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>
Signed-off-by: default avatarAshwini Muduganti <amudug@codeaurora.org>
parent b9349103
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7894,6 +7894,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);