diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-12-13 22:58:39 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-29 20:58:31 +0100 |
commit | c9bdf768dd9319d2d80a334646e2c8116af9e430 (patch) | |
tree | 38d45764a09763bc233cbbe4d1980afbaa43cc13 /mm/memory.c | |
parent | mm: convert swap_page_sector() to swap_folio_sector() (diff) | |
download | linux-c9bdf768dd9319d2d80a334646e2c8116af9e430.tar.xz linux-c9bdf768dd9319d2d80a334646e2c8116af9e430.zip |
mm: convert swap_readpage() to swap_read_folio()
All callers have a folio, so pass it in, saving two calls to
compound_head().
Link: https://lkml.kernel.org/r/20231213215842.671461-11-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/memory.c')
-rw-r--r-- | mm/memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c index 5c023bef2adb..cfcaf4c0198c 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3882,9 +3882,9 @@ vm_fault_t do_swap_page(struct vm_fault *vmf) folio_add_lru(folio); - /* To provide entry to swap_readpage() */ + /* To provide entry to swap_read_folio() */ folio->swap = entry; - swap_readpage(page, true, NULL); + swap_read_folio(folio, true, NULL); folio->private = NULL; } } else { |