]> git.baikalelectronics.ru Git - kernel.git/commit
mm/migrate: Add filemap_migrate_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 6 Jun 2022 16:55:08 +0000 (12:55 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 2 Aug 2022 16:34:04 +0000 (12:34 -0400)
commit796edfcc179492699f1603590a0883a886c183df
tree9df23e6ae72487ce2a84dbaf1a95160c0a5accba
parent1649ff471364a11fb0a49197a983fe7c74b6d829
mm/migrate: Add filemap_migrate_folio()

There is nothing iomap-specific about iomap_migratepage(), and it fits
a pattern used by several other filesystems, so move it to mm/migrate.c,
convert it to be filemap_migrate_folio() and convert the iomap filesystems
to use it.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/gfs2/aops.c
fs/iomap/buffered-io.c
fs/xfs/xfs_aops.c
fs/zonefs/super.c
include/linux/iomap.h
include/linux/pagemap.h
mm/migrate.c