]> www.infradead.org Git - users/willy/pagecache.git/commit
mm: Add folio_flush_mapping()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 10 Feb 2023 20:30:38 +0000 (15:30 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 1 Aug 2023 19:14:16 +0000 (15:14 -0400)
commita38cf33f4e5f6372149883b771ebdbfc301d4fb5
tree833ad3dbd3e6bd7916cd211d7ed9bc1e1c26e929
parentb2e070840d52abf4755359430bfbf990cf195847
mm: Add folio_flush_mapping()

This is the folio equivalent of page_mapping_file(), but rename it
to make it clear that it's very different from page_file_mapping().
Theoretically, there's nothing flush-only about it, but there are no
other users today, and I doubt there will be; it's almost always more
useful to know the swapfile's mapping or the swapcache's mapping.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
include/linux/pagemap.h