diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2025-02-26 16:31:29 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-03-18 05:06:58 +0000 |
| commit | fa17ad58f8328e5c089377fed55ca8ed62f7cd1d (patch) | |
| tree | 6f87be552fb813f045b34f6fc1121a53e3153425 /lib/test_xarray.c | |
| parent | mm: swap_cgroup: remove double initialization of locals (diff) | |
| download | kernel-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/test_xarray.c')
0 files changed, 0 insertions, 0 deletions
