aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xarray.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2025-02-26 16:31:29 +0000
committerAndrew Morton <[email protected]>2025-03-18 05:06:58 +0000
commitfa17ad58f8328e5c089377fed55ca8ed62f7cd1d (patch)
tree6f87be552fb813f045b34f6fc1121a53e3153425 /lib/xarray.c
parentmm: swap_cgroup: remove double initialization of locals (diff)
downloadkernel-fa17ad58f8328e5c089377fed55ca8ed62f7cd1d.tar.gz
kernel-fa17ad58f8328e5c089377fed55ca8ed62f7cd1d.zip
hugetlb: convert hugetlb_vma_maps_page() to hugetlb_vma_maps_pfn()
pte_page() is more expensive than pte_pfn() (often it's defined as pfn_to_page(pte_pfn())), so it makes sense to do the conversion to pfn once (by calling folio_pfn()) rather than convert the pfn to a page each time. While this is a very small advantage, the main motivation is removing a reference to folio->page. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Muchun Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions