Migrate (from, to) or (to, from)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A survey:

include/linux/page_owner.h:static inline void copy_page_owner(struct page *oldpage, struct page *newpage)

mm/migration.c:
void remove_migration_ptes(struct page *old, struct page *new, bool locked)
int migrate_page_move_mapping(struct address_space *mapping,
                struct page *newpage, struct page *page, int extra_count)
int migrate_huge_page_move_mapping(struct address_space *mapping,
                                   struct page *newpage, struct page *page)
void migrate_page_states(struct page *newpage, struct page *page)
void migrate_page_copy(struct page *newpage, struct page *page)
int migrate_page(struct address_space *mapping,
                struct page *newpage, struct page *page,
                enum migrate_mode mode)
int buffer_migrate_page(struct address_space *mapping,
                struct page *newpage, struct page *page, enum migrate_mode mode)
int buffer_migrate_page_norefs(struct address_space *mapping,
                struct page *newpage, struct page *page, enum migrate_mode mode)

                rc = mapping->a_ops->migratepage(mapping, newpage,
                                                page, mode);

That's a pretty clear preference for (to, from), so I'm going to change
copy_page_owner() when I convert it to folio_copy_owner().  And I'll
fix remove_migration_ptes() when i convert that to folios.




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux