Message ID | 20210526234115.0YhW-QUsd%akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
Series | + mm-page_alloc-fix-counting-of-free-pages-after-take-off-from-buddy.patch added to -mm tree | expand |
--- a/mm/page_alloc.c~mm-page_alloc-fix-counting-of-free-pages-after-take-off-from-buddy +++ a/mm/page_alloc.c @@ -9158,6 +9158,8 @@ bool take_page_off_buddy(struct page *pa del_page_from_free_list(page_head, zone, page_order); break_down_buddy_pages(zone, page_head, page, 0, page_order, migratetype); + if (!is_migrate_isolate(migratetype)) + __mod_zone_freepage_state(zone, -1, migratetype); ret = true; break; }