Message ID | 20210706190805.sDeWWHBcA%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] mm-page_alloc-correct-return-value-of-populated-elements-if-bulk-array-is-populated.patchremoved from -mm tree | expand |
--- a/mm/page_alloc.c~mm-page_alloc-correct-return-value-of-populated-elements-if-bulk-array-is-populated +++ a/mm/page_alloc.c @@ -5058,7 +5058,7 @@ unsigned long __alloc_pages_bulk(gfp_t g /* 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)