Re: [PATCH v4 08/19] selftests/mm: add folio-order check for address ranges

From: Mike Rapoport

Date: Thu Aug 20 2026 - 04:43:29 EST


On Sat, 15 Aug 2026 02:58:50 +0100, Kiryl Shutsemau <kirill@xxxxxxxxxxxxx> 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) <rppt@xxxxxxxxxx>

--
Sincerely yours,
Mike.