summaryrefslogtreecommitdiff
path: root/mm/truncate.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-11-28 14:53:35 -0500
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-01-08 00:28:32 -0500
commit3506659e18a61ae525f3b9b4f5af23b4b149d4db (patch)
treea6edd50d2dcb142c0e1d2a0c3f5fb8afcaf0d91a /mm/truncate.c
parentefe99bba2862aef24f1b05b786f6bf5acb076209 (diff)
mm: Add unmap_mapping_folio()
Convert both callers of unmap_mapping_page() to call unmap_mapping_folio() instead. Also move zap_details from linux/mm.h to mm/memory.c Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Diffstat (limited to 'mm/truncate.c')
-rw-r--r--mm/truncate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/truncate.c b/mm/truncate.c
index ab86b07c1e9c..c98feea75a10 100644
--- a/mm/truncate.c
+++ b/mm/truncate.c
@@ -180,7 +180,7 @@ void do_invalidatepage(struct page *page, unsigned int offset,
static void truncate_cleanup_folio(struct folio *folio)
{
if (folio_mapped(folio))
- unmap_mapping_page(&folio->page);
+ unmap_mapping_folio(folio);
if (folio_has_private(folio))
do_invalidatepage(&folio->page, 0, folio_size(folio));
@@ -670,7 +670,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
wait_on_page_writeback(page);
if (page_mapped(page))
- unmap_mapping_page(page);
+ unmap_mapping_folio(page_folio(page));
BUG_ON(page_mapped(page));
ret2 = do_launder_page(mapping, page);