Re: [PATCH 08/12] mm/khugepaged: Remove redundant pmd_devmap() check
From: Jason Gunthorpe
Date: Tue Jun 03 2025 - 09:49:31 EST
On Thu, May 29, 2025 at 04:32:09PM +1000, Alistair Popple wrote:
> The only users of pmd_devmap were device dax and fs dax. The check for
> pmd_devmap() in check_pmd_state() is therefore redundant as callers
> explicitly check for is_zone_device_page(), so this check can be dropped.
>
> Signed-off-by: Alistair Popple <apopple@xxxxxxxxxx>
> ---
> mm/khugepaged.c | 2 --
> 1 file changed, 2 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
Jason