]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/pages: use folio_nr_pages() instead of shift operation
authorPedro Demarchi Gomes <pedrodemargomes@gmail.com>
Sat, 4 Oct 2025 03:23:51 +0000 (00:23 -0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 27 Oct 2025 11:46:57 +0000 (12:46 +0100)
commitdb340b02b27c7bd7e5e9a55c700058a7789d8935
tree5b46aaf32b5e6a524c6fb716bffa0d88e23cbc8b
parentdcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa
iommu/pages: use folio_nr_pages() instead of shift operation

folio_nr_pages() is a faster helper function to get the number of pages when
NR_PAGES_IN_LARGE_FOLIO is enabled.

Signed-off-by: Pedro Demarchi Gomes <pedrodemargomes@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/iommu-pages.c