I agree Joonsoo's idea. Freeing isolated page out of putback() could be confused. Every detail cannot be documented. And more documents mean less elegant code. Is it possible to free isolated page in putback()? In move_to_new_page(), can we call a_ops->migratepage like following? move_to_new_page() { mapping = page_mapping(page) if (!mapping) rc = migrate_page else if (mapping->a_ops->migratepage && IsolatePage(page)) rc = mapping->a_ops->migratepage else rc = fallback_migrate_page ... return rc } I'm sorry that I couldn't review in detail because I forgot many details. |
_______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization