]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu: debug-pagealloc: Use page_ext_get_from_phys()
authorMostafa Saleh <smostafa@google.com>
Tue, 20 Jan 2026 09:19:26 +0000 (09:19 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Wed, 21 Jan 2026 11:51:49 +0000 (12:51 +0100)
commita7f1bc231b666aed85358d4940ca8c37a75639f7
tree665d35fc972bb2a270415030da8ec8b6c3e11d16
parentd414b83dc5f90a6a9a656cd6fbb9378ddc824032
iommu: debug-pagealloc: Use page_ext_get_from_phys()

Instead of calling pfn_valid() and then getting the page, call
the newly added function page_ext_get_from_phys(), which would
also check for MMIO and offline memory and return NULL in that
case.

Signed-off-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/iommu-debug-pagealloc.c