diff --git a/mm/page_alloc.c b/mm/page_alloc.c index ef2265f86b913dbcd604f22a893079775fff135b..04220581579cd92c1ade6c77306d78c632a4ecc6 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5058,7 +5058,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)