]> www.infradead.org Git - users/willy/pagecache.git/commit
mm: Convert page_add_file_rmap() to use a folio internally
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 30 Dec 2022 19:02:10 +0000 (14:02 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 3 Jan 2023 04:00:55 +0000 (23:00 -0500)
commit84af4ad599dd71b486da9bfa20ee463bf4c7d16b
tree977f695ebf59e9b9016831c96c3752f2d78b5cc0
parented7a60d3b2ebf0e9825c031b4ba378b7883563ef
mm: Convert page_add_file_rmap() to use a folio internally

The API for page_add_file_rmap() needs to be page-based, because we can
add mappings of individual pages.  But inside the function, we want to
only call compound_head() once and then use the folio APIs instead of
the page APIs that each call compound_head().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/rmap.c