]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/rmap: use folio->_mapcount for small folios
authorDavid Hildenbrand <david@redhat.com>
Fri, 16 Aug 2024 10:32:46 +0000 (12:32 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:53:26 +0000 (17:53 -0700)
commit413415ac609de286d585df3ec7a710c4ade778a1
tree7068c3aa273fcbb30d858fc89ec26646c9ed6807
parentbbfadc944b115853dbb03f05deac56a48f8fc56a
mm/rmap: use folio->_mapcount for small folios

We have some cases left whereby we operate on small folios and still refer
to page->_mapcount.  Let's just use folio->_mapcount instead, which
currently still overlays page->_mapcount, so no change.

This change will make it easier to later spot any remaining users of
page->_mapcount that target tail pages.

Link: https://lkml.kernel.org/r/20240816103246.719209-1-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/rmap.h
mm/rmap.c