Re: [PATCH v4 08/19] selftests/mm: add folio-order check for address ranges
Mike Rapoport <[email protected]>
| Newsgroups | org.kernel.vger.linux-kselftest,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <178721523517.2799959.17945598969161889516.b4-review@b4> |
On Sat, 15 Aug 2026 02:58:50 +0100, Kiryl Shutsemau <[email protected]> wrote: > An mTHP collapse test needs to know that a range is backed by folios of the > target order, and that they sit where a collapse would put them. Nothing > answers that today: is_backed_by_folio() classifies the folio behind a > single page, and check_huge_anon() reads smaps AnonHugePages, which only > accounts PMD mappings. > > Add is_range_backed_by_folio_orders(). For every order-aligned window of > the range it requires a present head PFN at its natural alignment and a > contiguous PFN run across the window. > > [...] Reviewed-by: Mike Rapoport (Microsoft) <[email protected]> -- Sincerely yours, Mike.