diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-09-02 21:46:44 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-10-03 23:02:53 +0200 |
commit | 3b344157c0c15b8f9588e3021dfb22ee25f4508a (patch) | |
tree | 7a54942b9b70709525f8e18e5cb9ea6a3c63c3d4 /mm/folio-compat.c | |
parent | memcg: convert mem_cgroup_swap_full() to take a folio (diff) | |
download | linux-3b344157c0c15b8f9588e3021dfb22ee25f4508a.tar.xz linux-3b344157c0c15b8f9588e3021dfb22ee25f4508a.zip |
mm: remove try_to_free_swap()
All callers have now been converted to folio_free_swap() and we can remove
this wrapper.
Link: https://lkml.kernel.org/r/20220902194653.1739778-49-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/folio-compat.c')
-rw-r--r-- | mm/folio-compat.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/folio-compat.c b/mm/folio-compat.c index 06d47f00609b..e1e23b4947d7 100644 --- a/mm/folio-compat.c +++ b/mm/folio-compat.c @@ -146,10 +146,3 @@ void putback_lru_page(struct page *page) { folio_putback_lru(page_folio(page)); } - -#ifdef CONFIG_SWAP -int try_to_free_swap(struct page *page) -{ - return folio_free_swap(page_folio(page)); -} -#endif |