Message ID | 20210629023329.M3l2xeWtg%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [001/192] mm/gup: fix try_grab_compound_head() race with split_huge_page() | 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)