diff options
author | 2025-04-03 14:41:38 +0800 | |
---|---|---|
committer | 2025-04-11 17:32:36 -0700 | |
commit | 382360d289c1e1d89df06f33c4d5b874b38ef267 (patch) | |
tree | f3636601b90e9da3e7126b051b0f05d6f699d3b4 /scripts/lib/kdoc/kdoc_output.py | |
parent | mm/page_alloc: avoid second trylock of zone->lock (diff) | |
download | wireguard-linux-382360d289c1e1d89df06f33c4d5b874b38ef267.tar.xz wireguard-linux-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/20250403064138.2867929-1-liushixin2@huawei.com
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Acked-by: Oscar Salvador <osalvador@suse.de>
Cc: David Hildenbrand <david@redhat.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Nanyong Sun <sunnanyong@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions