]> www.infradead.org Git - users/willy/pagecache.git/commit
mm: Reimplement compound_nr()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 4 Sep 2022 23:36:34 +0000 (19:36 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 3 Jan 2023 04:00:55 +0000 (23:00 -0500)
commit8df401e7a17fc18bcf4454b53f1168393579ee1d
tree061910254baa6b73a47c56ff3865a3b5f7eaf48b
parentcadba9f8e50ca46ca76e98104100d9749298363d
mm: Reimplement compound_nr()

Turn compound_nr() into a wrapper around folio_nr_pages().  Similarly
to compound_order(), casting the struct page directly to struct folio
preserves the existing behaviour, while calling page_folio() would change
the behaviour.  Move thp_nr_pages() down in the file so that compound_nr()
can be after folio_nr_pages().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/mm.h