summaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-06-06 11:53:31 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-08-02 12:34:04 -0400
commit9d0ddc0cb575fd41ff16131b06e08e1feac43b81 (patch)
treecd3a7d5812d96d0c5e7a92f3a9657615fe9d3e50 /mm/migrate.c
parent5409548df3876a6fa9115bce237c93c3d50d6cb6 (diff)
downloadlinux-9d0ddc0cb575fd41ff16131b06e08e1feac43b81.tar.gz
linux-9d0ddc0cb575fd41ff16131b06e08e1feac43b81.tar.bz2
linux-9d0ddc0cb575fd41ff16131b06e08e1feac43b81.zip
fs: Remove aops->migratepage()
With all users converted to migrate_folio(), remove this operation. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'mm/migrate.c')
-rw-r--r--mm/migrate.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index 0dd3ec9525b3..1b4b977809a1 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -909,9 +909,6 @@ static int move_to_new_folio(struct folio *dst, struct folio *src,
*/
rc = mapping->a_ops->migrate_folio(mapping, dst, src,
mode);
- else if (mapping->a_ops->migratepage)
- rc = mapping->a_ops->migratepage(mapping, &dst->page,
- &src->page, mode);
else
rc = fallback_migrate_folio(mapping, dst, src, mode);
} else {