diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-07-28 21:52:34 +0200 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-01-08 06:28:41 +0100 |
commit | 78f426608f21c997975adb96641b7ac82d4d15b1 (patch) | |
tree | 15f40c632575107da53c50ef377de3e48bfabc98 /mm/filemap.c | |
parent | truncate: Convert invalidate_inode_pages2_range() to use a folio (diff) | |
download | linux-78f426608f21c997975adb96641b7ac82d4d15b1.tar.xz linux-78f426608f21c997975adb96641b7ac82d4d15b1.zip |
truncate: Add invalidate_complete_folio2()
Convert invalidate_complete_page2() to invalidate_complete_folio2().
Use filemap_free_folio() to free the page instead of calling ->freepage
manually.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 4c39e09a2f51..72ea824db6f0 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -229,8 +229,7 @@ void __filemap_remove_folio(struct folio *folio, void *shadow) page_cache_delete(mapping, folio, shadow); } -static void filemap_free_folio(struct address_space *mapping, - struct folio *folio) +void filemap_free_folio(struct address_space *mapping, struct folio *folio) { void (*freepage)(struct page *); |