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>
Fri, 25 Feb 2022 14:10:23 +0000 (09:10 -0500)
commit82865a9e1187eb0624f0db5c6e81172579638a2b
tree90586505e6530f78a6cd8d91915a69eb2731d091
parent63727cdb1296d8e42e58b05c6a930eabe3f43421
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