Re: [PATCH 4/8] mm: memory-failure: use local variable huge to check hugetlb page
From: Naoya Horiguchi
Date: Mon Jul 10 2023 - 03:57:29 EST
On Sat, Jul 08, 2023 at 04:57:40PM +0800, Miaohe Lin wrote:
> Use local variable huge to check whether page is hugetlb page to avoid
> calling PageHuge() multiple times to save cpu cycles. PageHuge() will
> be stable while extra page refcnt is held.
>
> Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
Acked-by: Naoya Horiguchi <naoya.horiguchi@xxxxxxx>