]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: page_owner: use new iteration API
authorLuiz Capitulino <luizcap@redhat.com>
Thu, 6 Mar 2025 22:44:52 +0000 (17:44 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Mar 2025 05:06:57 +0000 (22:06 -0700)
commit3a812bed3d32ae8c7443d1dd82f20b9a7e503ed2
treef8c3fae1a2875a3b416f0b3bf69bee8ad91cdfe6
parent4e30b94cdad659d8ec5d32b61159138ce8d4ad1b
mm: page_owner: use new iteration API

The page_ext_next() function assumes that page extension objects for a
page order allocation always reside in the same memory section, which may
not be true and could lead to crashes.  Use the new page_ext iteration API
instead.

Link: https://lkml.kernel.org/r/93c80b040960fa2ebab4a9729073f77a30649862.1741301089.git.luizcap@redhat.com
Fixes: cf54f310d0d3 ("mm/hugetlb: use __GFP_COMP for gigantic folios")
Signed-off-by: Luiz Capitulino <luizcap@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_owner.c