diff options
author | Matthew Wilcox (Oracle) <[email protected]> | 2024-03-21 14:24:42 +0000 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-04-24 19:34:26 -0700 |
commit | fd1a745ce03e37945674c14833870a9af0882e2d (patch) | |
tree | c42239c377c8f8e459362f8bbbe4badebf368faf /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 12bbaae7635a56049779db3bef6e7140d9aa5f67 (diff) |
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/[email protected]
Fixes: 9c5ccf2db04b ("mm: remove HUGETLB_PAGE_DTOR")
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Cc: Miaohe Lin <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Oscar Salvador <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions