mm/swapfile: convert try_to_free_swap() to folio_free_swap()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 2 Sep 2022 19:46:06 +0000 (20:46 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:02:46 +0000 (14:02 -0700)
commitbdb0ed54a4768dc3c2613d4c45f94c887d43cd7a
treee6a4f6b623a71f5f2483a146017d374a52b951fd
parent14d01ee9fcb901c9e020f2dcd71c500f10c3bd03
mm/swapfile: convert try_to_free_swap() to folio_free_swap()

Add kernel-doc for folio_free_swap() and make it return bool.  Add a
try_to_free_swap() compatibility wrapper.

Link: https://lkml.kernel.org/r/20220902194653.1739778-11-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/swap.h
mm/folio-compat.c
mm/swapfile.c
mm/vmscan.c