]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: return the folio from swapin_readahead
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 7 Aug 2024 19:37:32 +0000 (20:37 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:53:03 +0000 (17:53 -0700)
commitf6584d12a4badc8ba9215178fbc464f1c669d62d
tree3a1f41c5c8948659e8992c65e17e7d28a60cb370
parent06c18c5dfd2b216a6e42e4a0ead40581555b9727
mm: return the folio from swapin_readahead

The unuse_pte_range() caller only wants the folio while do_swap_page()
wants both the page and the folio.  Since do_swap_page() already has logic
for handling both the folio and the page, move the folio-to-page logic
there.  This also lets us allocate larger folios in the SWP_SYNCHRONOUS_IO
path in future.

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