]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dma-remap: drop nth_page() in dma_common_contiguous_remap()
authorDavid Hildenbrand <david@redhat.com>
Mon, 1 Sep 2025 15:03:44 +0000 (17:03 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:22:06 +0000 (14:22 -0700)
commita16c46c2402026162111ed9fd1fc28d25223443e
treec85348bcc891ac94ded1df5ff890805200d48a4f
parent6972706f95926838f9bd3ec2b2393c034bdb85ba
dma-remap: drop nth_page() in dma_common_contiguous_remap()

dma_common_contiguous_remap() is used to remap an "allocated contiguous
region".  Within a single allocation, there is no need to use nth_page()
anymore.

Neither the buddy, nor hugetlb, nor CMA will hand out problematic page
ranges.

Link: https://lkml.kernel.org/r/20250901150359.867252-24-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/dma/remap.c