]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/page_ext: Add page_ext_get_from_phys()
authorMostafa Saleh <smostafa@google.com>
Tue, 20 Jan 2026 09:19:25 +0000 (09:19 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Wed, 21 Jan 2026 11:51:48 +0000 (12:51 +0100)
commitd414b83dc5f90a6a9a656cd6fbb9378ddc824032
treebafa8ac6600f082fd46beff9a54573e4c7ec2ba1
parent2e2f6b0ef8551bf3bd8255729d27e3ad9451e562
mm/page_ext: Add page_ext_get_from_phys()

The IOMMU code operates on physical addresses which can be outside
of system RAM.

Add a new function page_ext_get_from_phys() to abstract the logic of
checking the address and returning the page_ext.

Signed-off-by: Mostafa Saleh <smostafa@google.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
include/linux/page_ext.h
mm/page_ext.c