diff options
| author | Liu Shixin <[email protected]> | 2025-04-03 06:41:38 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-04-12 00:32:36 +0000 |
| commit | 382360d289c1e1d89df06f33c4d5b874b38ef267 (patch) | |
| tree | f3636601b90e9da3e7126b051b0f05d6f699d3b4 /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | mm/page_alloc: avoid second trylock of zone->lock (diff) | |
| download | kernel-382360d289c1e1d89df06f33c4d5b874b38ef267.tar.gz kernel-382360d289c1e1d89df06f33c4d5b874b38ef267.zip | |
mm/hugetlb: fix nid mismatch in alloc_surplus_hugetlb_folio()
It's wrong to use nid directly since the nid may be changed in allocation.
Use folio_nid() to obtain the nid of folio instead.
Fix: 2273dea6b1e1 ("mm/hugetlb: update nr_huge_pages and surplus_huge_pages together")
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Liu Shixin <[email protected]>
Acked-by: Oscar Salvador <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Nanyong Sun <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions
