OSDN Git Service

mm: convert total_compound_mapcount() to folio_total_mapcount()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 11 Jan 2023 14:28:50 +0000 (14:28 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:32:55 +0000 (22:32 -0800)
commitb14224fbea62e5bffd680613376fe1268f4103ba
tree37e2e52f09d8e1ddd8d661fd57efa1d349bf35ff
parent6eee1a0062298601dfc36bd34517affc4458c43d
mm: convert total_compound_mapcount() to folio_total_mapcount()

Instead of enforcing that the argument must be a head page by naming,
enforce it with the compiler by making it a folio.  Also rename the
counter in struct folio from _compound_mapcount to _entire_mapcount.

Link: https://lkml.kernel.org/r/20230111142915.1001531-5-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
include/linux/mm_types.h
mm/rmap.c