Re: [PATCH 2/6] hugetlb: remove the hugetlb_linear_page_index() helper

Oscar Salvador
2026-04-13T16:48:34Z

On Thu, Apr 09, 2026 at 05:41:53PM -0600, Jane Chu wrote:
> hugetlb_linear_page_index() is just linear_page_index() converted from
> base-page units to hugetlb page units.
>
> Open-code that conversion at its remaining call site in
> mfill_atomic_hugetlb() and drop the helper.
>
> No functional change intended.
>
> Signed-off-by: Jane Chu <jane.chu@oracle.com>

Acked-by: Oscar Salvador <osalvador@suse.de>

--
Oscar Salvador
SUSE Labs