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/internal.h | |
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/internal.h')
-rw-r--r-- | mm/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/internal.h b/mm/internal.h index f9967b0be8bf..e5f3ff3ae24e 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -92,6 +92,7 @@ static inline void force_page_cache_readahead(struct address_space *mapping, unsigned find_lock_entries(struct address_space *mapping, pgoff_t start, pgoff_t end, struct pagevec *pvec, pgoff_t *indices); +void filemap_free_folio(struct address_space *mapping, struct folio *folio); int truncate_inode_folio(struct address_space *mapping, struct folio *folio); /** |