aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/hugetlb_cgroup.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2024-04-17 11:23:12 +0200
committerAndrew Morton <akpm@linux-foundation.org>2024-05-05 17:53:41 -0700
commit88e4e47c12836cf6875f73fca87baaf20c6ca1a2 (patch)
treed25748502ae2d54da231d14b73741ffea72308ed /mm/hugetlb_cgroup.c
parentmm/sparse: guard the size of mem_section is power of 2 (diff)
downloadwireguard-linux-88e4e47c12836cf6875f73fca87baaf20c6ca1a2.tar.xz
wireguard-linux-88e4e47c12836cf6875f73fca87baaf20c6ca1a2.zip
fs/proc/task_mmu: convert pagemap_hugetlb_range() to work on folios
Patch series "fs/proc/task_mmu: convert hugetlb functions to work on folis". Let's convert two more functions, getting rid of two more page_mapcount() calls. This patch (of 2): 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, also check for PMD table sharing, like we do in smaps_hugetlb_range(). No functional change intended, except that we would now detect hugetlb folios shared via PMD table sharing correctly. Link: https://lkml.kernel.org/r/20240417092313.753919-1-david@redhat.com Link: https://lkml.kernel.org/r/20240417092313.753919-2-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