filemap: Add filemap_unaccount_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 9 May 2021 00:04:05 +0000 (20:04 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 4 Jan 2022 18:15:33 +0000 (13:15 -0500)
commit621db4880d305bc37b343b1671e03b7eb5d61389
tree06e54c7f86831be91a549b588112448607e19cb5
parenta548b615834548c202548ca2acbf7b42a17003d7
filemap: Add filemap_unaccount_folio()

Replace unaccount_page_cache_page() with filemap_unaccount_folio().
The bug handling path could be a bit more robust (eg taking into account
the mapcounts of tail pages), but it's really never supposed to happen.

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