Re: [PATCH 08/12] mm/khugepaged: Remove redundant pmd_devmap() check

Jason Gunthorpe
2025-06-03T13:48:45Z

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@nvidia.com>
> ---
> mm/khugepaged.c | 2 --
> 1 file changed, 2 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason