summaryrefslogtreecommitdiffstats
path: root/mm/folio-compat.c
diff options
context:
space:
mode:
authorVishal Moola (Oracle) <vishal.moola@gmail.com>2022-11-18 08:30:55 +0100
committerAndrew Morton <akpm@linux-foundation.org>2022-12-01 00:59:02 +0100
commit7438899b0b8df16a73d9a5d49b2a345d165adfe8 (patch)
tree6004dc7036e966a4db8fc97b5a62b53f28ae3393 /mm/folio-compat.c
parentmemory-failure: convert truncate_error_page() to use folio (diff)
downloadlinux-7438899b0b8df16a73d9a5d49b2a345d165adfe8.tar.xz
linux-7438899b0b8df16a73d9a5d49b2a345d165adfe8.zip
folio-compat: remove try_to_release_page()
There are no more callers of try_to_release_page(), so remove it. This saves 85 bytes of kernel text. Link: https://lkml.kernel.org/r/20221118073055.55694-5-vishal.moola@gmail.com Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Naoya Horiguchi <naoya.horiguchi@nec.com> Cc: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/folio-compat.c')
-rw-r--r--mm/folio-compat.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/mm/folio-compat.c b/mm/folio-compat.c
index cbfe51091c39..86933fa8f3e1 100644
--- a/mm/folio-compat.c
+++ b/mm/folio-compat.c
@@ -118,12 +118,6 @@ struct page *grab_cache_page_write_begin(struct address_space *mapping,
}
EXPORT_SYMBOL(grab_cache_page_write_begin);
-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);
-
int isolate_lru_page(struct page *page)
{
if (WARN_RATELIMIT(PageTail(page), "trying to isolate tail page"))