diff options
author | 2024-08-07 20:37:32 +0100 | |
---|---|---|
committer | 2024-09-01 20:26:05 -0700 | |
commit | 94dc8bffd8b7fe83ba8382a3410a2f218dc20cb0 (patch) | |
tree | efb2372e8f788ee781ef1770654ed0787ed007b5 /mm/page_alloc.c | |
parent | mm: remove PG_error (diff) | |
download | linux-rng-94dc8bffd8b7fe83ba8382a3410a2f218dc20cb0.tar.xz linux-rng-94dc8bffd8b7fe83ba8382a3410a2f218dc20cb0.zip |
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>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions