diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 853d65d5420ff630c56562ae96fdc3556d95759d..19394f8f9daf1ad9d499f4cf2987182615b76d60 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4965,7 +4965,7 @@ unsigned long __alloc_pages_bulk(gfp_t gfp, int preferred_nid, /* Already populated array? */ if (unlikely(page_array && nr_pages - nr_populated == 0)) - return 0; + return nr_populated; /* Use the single page allocator for one page. */ if (nr_pages - nr_populated == 1)