Re: [RFC 01/10] mm/gup.c: Remove redundant check for PCI P2PDMA page

Jason Gunthorpe
2024-04-11T12:59:22Z

On Thu, Apr 11, 2024 at 10:57:22AM +1000, Alistair Popple wrote:
> PCI P2PDMA pages are not mapped with pXX_devmap PTEs therefore the
> check in __gup_device_huge() is redundant. Remove it
>
> Signed-off-by: Alistair Popple <apopple@nvidia.com>
> ---
> mm/gup.c | 5 -----
> 1 file changed, 5 deletions(-)

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

Jason