summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-03-21 15:24:42 +0100
committerAndrew Morton <akpm@linux-foundation.org>2024-04-25 04:34:26 +0200
commitfd1a745ce03e37945674c14833870a9af0882e2d (patch)
treec42239c377c8f8e459362f8bbbe4badebf368faf /mm
parentmm: create FOLIO_FLAG_FALSE and FOLIO_TYPE_OPS macros (diff)
downloadlinux-fd1a745ce03e37945674c14833870a9af0882e2d.tar.xz
linux-fd1a745ce03e37945674c14833870a9af0882e2d.zip
mm: support page_mapcount() on page_has_type() pages
Return 0 for pages which can't be mapped. This matches how page_mapped() works. It is more convenient for users to not have to filter out these pages. Link: https://lkml.kernel.org/r/20240321142448.1645400-5-willy@infradead.org Fixes: 9c5ccf2db04b ("mm: remove HUGETLB_PAGE_DTOR") Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Hildenbrand <david@redhat.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Miaohe Lin <linmiaohe@huawei.com> Cc: Muchun Song <muchun.song@linux.dev> Cc: Oscar Salvador <osalvador@suse.de> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions