aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/migrate.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-05-07 07:28:40 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2021-10-18 07:49:39 -0400
commit3417013e0d183be9b42d794082eec0ec1c5b5f15 (patch)
treecc4dca60d86832d745307f4c000d1ca2702b5334 /include/linux/migrate.h
parentmm/rmap: Add folio_mkclean() (diff)
downloadlinux-dev-3417013e0d183be9b42d794082eec0ec1c5b5f15.tar.xz
linux-dev-3417013e0d183be9b42d794082eec0ec1c5b5f15.zip
mm/migrate: Add folio_migrate_mapping()
Reimplement migrate_page_move_mapping() as a wrapper around folio_migrate_mapping(). Saves 193 bytes of kernel text. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Howells <dhowells@redhat.com> Acked-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'include/linux/migrate.h')
-rw-r--r--include/linux/migrate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/migrate.h b/include/linux/migrate.h
index c8077e936691..58b3af645e20 100644
--- a/include/linux/migrate.h
+++ b/include/linux/migrate.h
@@ -57,6 +57,8 @@ extern int migrate_huge_page_move_mapping(struct address_space *mapping,
struct page *newpage, struct page *page);
extern int migrate_page_move_mapping(struct address_space *mapping,
struct page *newpage, struct page *page, int extra_count);
+int folio_migrate_mapping(struct address_space *mapping,
+ struct folio *newfolio, struct folio *folio, int extra_count);
#else
static inline void putback_movable_pages(struct list_head *l) {}