On Tue, Aug 18, 2026 at 11:25:27AM +0100, Lorenzo Stoakes (ARM) wrote:
> > +bool is_range_backed_by_folio_orders(char *start, size_t len, int order,
> 
> is_range_mthp_backed() seems a lot clearer?
> 

I would rather keep the order in the name.

The helper checks that the range is backed by folios of exactly the
order the caller names, and the mTHP cases call it three times per check
at three different orders to tell them apart -- reporting an order-7
folio as order-6 is a bug.

It is also called with order 0, which is not an mTHP.

Going with is_range_backed_by_order() in v5.

Everything else here taken as suggested, and the comment made kdoc.

-- 
  Kiryl Shutsemau / Kirill A. Shutemov

Reply via email to