Message ID | 20210607204111.eT5PUIqP9%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] mm-page_alloc-fix-counting-of-free-pages-after-take-off-from-buddy.patch removed from -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; }