mm: Add folio_mapcount()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 17 Jan 2022 21:33:26 +0000 (16:33 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:59:02 +0000 (12:59 -0400)
commit4ba1119cd53166d853050ff1a9d76079cd8f8e06
treea70d8b819fcce1322e1193bbae30676eb3ce0ebf
parent74e8ee4708a8edabbbc7ab8c12ec24d7a561bb41
mm: Add folio_mapcount()

This implements the same algorithm as total_mapcount(), which is
transformed into a wrapper function.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/linux/mm.h
mm/huge_memory.c
mm/util.c