diff options
author | 2024-04-17 11:23:13 +0200 | |
---|---|---|
committer | 2024-05-05 17:53:41 -0700 | |
commit | 6401a2e6900843a77a27873c0529dea68f61193d (patch) | |
tree | 252d938f3180ce36ad3a5877bbc57a7d688f0b0a /mm/hugetlb_cgroup.c | |
parent | fs/proc/task_mmu: convert pagemap_hugetlb_range() to work on folios (diff) | |
download | wireguard-linux-6401a2e6900843a77a27873c0529dea68f61193d.tar.xz wireguard-linux-6401a2e6900843a77a27873c0529dea68f61193d.zip |
fs/proc/task_mmu: convert smaps_hugetlb_range() to work on folios
Let's get rid of another page_mapcount() check and simply use
folio_likely_mapped_shared(), which is precise for hugetlb folios.
While at it, use huge_ptep_get() + pte_page() instead of ptep_get() +
vm_normal_page(), just like we do in pagemap_hugetlb_range().
No functional change intended.
Link: https://lkml.kernel.org/r/20240417092313.753919-3-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb_cgroup.c')
0 files changed, 0 insertions, 0 deletions