filemap: Add filemap_remove_folio and __filemap_remove_folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 9 May 2021 13:33:42 +0000 (09:33 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 4 Jan 2022 18:15:33 +0000 (13:15 -0500)
commit452e9e6992fe058a650c81d01a9982e3faf10278
tree3af039314d774f75853dcbb17bfdbad776d81c33
parenta0580c6f9babaf4413c8a7e2ab21d68e31f4c754
filemap: Add filemap_remove_folio and __filemap_remove_folio

Reimplement __delete_from_page_cache() as a wrapper around
__filemap_remove_folio() and delete_from_page_cache() as a wrapper
around filemap_remove_folio().  Remove the EXPORT_SYMBOL as
delete_from_page_cache() was not used by any in-tree modules.
Convert page_cache_free_page() into filemap_free_folio().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
include/linux/pagemap.h
mm/filemap.c
mm/folio-compat.c