swap: convert swapon() to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 26 Aug 2024 20:21:35 +0000 (21:21 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 9 Sep 2024 23:38:58 +0000 (16:38 -0700)
commit97b76796ccd07727b58ed739fcd60f2174d5ac18
treed89af4ed1eabcb787b8b3bd0e17dda19fe066861
parent8175ebfd302abe6fbdca9037f763ecbfdb8db572
swap: convert swapon() to use a folio

Retrieve a folio from the page cache rather than a page.  Saves a couple
of conversions between page & folio.

Link: https://lkml.kernel.org/r/20240826202138.3804238-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c