Revert "BACKPORT: mm: page_alloc: batch vmstat updates in expand()"
This reverts commit bc1e3097e3
.
Change-Id: Ia2ac7d24bf2eb0931bcfff2bec0852654cd4d5a2
Bug: 420771453
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
This commit is contained in:
@@ -1519,7 +1519,6 @@ static inline void expand(struct zone *zone, struct page *page,
|
|||||||
int low, int high, int migratetype)
|
int low, int high, int migratetype)
|
||||||
{
|
{
|
||||||
unsigned long size = 1 << high;
|
unsigned long size = 1 << high;
|
||||||
unsigned long nr_added = 0;
|
|
||||||
|
|
||||||
while (high > low) {
|
while (high > low) {
|
||||||
high--;
|
high--;
|
||||||
@@ -1537,9 +1536,7 @@ static inline void expand(struct zone *zone, struct page *page,
|
|||||||
|
|
||||||
__add_to_free_list(&page[size], zone, high, migratetype, false);
|
__add_to_free_list(&page[size], zone, high, migratetype, false);
|
||||||
set_buddy_order(&page[size], high);
|
set_buddy_order(&page[size], high);
|
||||||
nr_added += size;
|
|
||||||
}
|
}
|
||||||
account_freepages(zone, nr_added, migratetype);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void check_new_page_bad(struct page *page)
|
static void check_new_page_bad(struct page *page)
|
||||||
|
Reference in New Issue
Block a user