diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-07-28 21:14:48 +0200 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-01-04 19:15:34 +0100 |
commit | 82c50f8b443359ec99348cd9b1289f55cd47779d (patch) | |
tree | a583dd7356daabd92a4b4003407dd0ecc1a9a32f /mm/folio-compat.c | |
parent | filemap: Use a folio in filemap_page_mkwrite (diff) | |
download | linux-82c50f8b443359ec99348cd9b1289f55cd47779d.tar.xz linux-82c50f8b443359ec99348cd9b1289f55cd47779d.zip |
filemap: Add filemap_release_folio()
Reimplement try_to_release_page() as a wrapper around
filemap_release_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>
Diffstat (limited to 'mm/folio-compat.c')
-rw-r--r-- | mm/folio-compat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/folio-compat.c b/mm/folio-compat.c index 749a695b4217..749555a232a8 100644 --- a/mm/folio-compat.c +++ b/mm/folio-compat.c @@ -145,3 +145,9 @@ void delete_from_page_cache(struct page *page) { return filemap_remove_folio(page_folio(page)); } + +int try_to_release_page(struct page *page, gfp_t gfp) +{ + return filemap_release_folio(page_folio(page), gfp); +} +EXPORT_SYMBOL(try_to_release_page); |