diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-06-06 16:27:41 +0200 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-08-02 18:34:04 +0200 |
commit | 541846502f4fe826cd7c16e4784695ac90736585 (patch) | |
tree | 037219533d39265d632833c86c875a9475469fd7 /mm/swap_state.c | |
parent | nfs: Convert to migrate_folio (diff) | |
download | linux-541846502f4fe826cd7c16e4784695ac90736585.tar.xz linux-541846502f4fe826cd7c16e4784695ac90736585.zip |
mm/migrate: Convert migrate_page() to migrate_folio()
Convert all callers to pass a folio. Most have the folio
already available. Switch all users from aops->migratepage to
aops->migrate_folio. Also turn the documentation into kerneldoc.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'mm/swap_state.c')
-rw-r--r-- | mm/swap_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swap_state.c b/mm/swap_state.c index f5b6f5638908..0a2021fc55ad 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -33,7 +33,7 @@ static const struct address_space_operations swap_aops = { .writepage = swap_writepage, .dirty_folio = noop_dirty_folio, #ifdef CONFIG_MIGRATION - .migratepage = migrate_page, + .migrate_folio = migrate_folio, #endif }; |