David Hildenbrand 6401a2e690 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>
2024-05-05 17:53:41 -07:00
..
2022-10-03 14:21:45 -07:00
2023-10-19 11:02:48 +02:00
2023-01-19 09:24:28 +01:00
2022-10-10 11:24:19 -07:00
2022-10-03 14:21:45 -07:00
2024-04-25 20:56:18 -07:00
2023-08-28 11:43:19 -07:00
2022-10-03 14:21:45 -07:00
2023-04-18 16:39:33 -07:00
2023-10-30 09:14:19 -10:00
2022-10-03 14:21:45 -07:00
2022-10-03 14:21:45 -07:00