]> www.infradead.org Git - users/willy/xarray.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>
Wed, 4 Sep 2024 04:15:37 +0000 (21:15 -0700)
commitd0b003ce97ad6518dea4b0ed70081df95de04179
tree88008767755a678f34bf3565fbb1f63d8b15cb2e
parentcf54f310d0d313bce6505d010a555948b0ae0e2a
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