Lines Matching refs:mode
61 int isolate_movable_page(struct page *page, isolate_mode_t mode) in isolate_movable_page() argument
104 if (!mapping->a_ops->isolate_page(page, mode)) in isolate_movable_page()
640 enum migrate_mode mode) in migrate_page() argument
651 if (mode != MIGRATE_SYNC_NO_COPY) in migrate_page()
662 enum migrate_mode mode) in buffer_migrate_lock_buffers() argument
667 if (mode != MIGRATE_ASYNC) { in buffer_migrate_lock_buffers()
699 struct page *newpage, struct page *page, enum migrate_mode mode, in __buffer_migrate_page() argument
707 return migrate_page(mapping, newpage, page, mode); in __buffer_migrate_page()
715 if (!buffer_migrate_lock_buffers(head, mode)) in __buffer_migrate_page()
758 if (mode != MIGRATE_SYNC_NO_COPY) in __buffer_migrate_page()
783 struct page *newpage, struct page *page, enum migrate_mode mode) in buffer_migrate_page() argument
785 return __buffer_migrate_page(mapping, newpage, page, mode, false); in buffer_migrate_page()
796 struct page *newpage, struct page *page, enum migrate_mode mode) in buffer_migrate_page_norefs() argument
798 return __buffer_migrate_page(mapping, newpage, page, mode, true); in buffer_migrate_page_norefs()
847 struct page *newpage, struct page *page, enum migrate_mode mode) in fallback_migrate_page() argument
851 switch (mode) { in fallback_migrate_page()
867 return mode == MIGRATE_SYNC ? -EAGAIN : -EBUSY; in fallback_migrate_page()
869 return migrate_page(mapping, newpage, page, mode); in fallback_migrate_page()
884 enum migrate_mode mode) in move_to_new_page() argument
897 rc = migrate_page(mapping, newpage, page, mode); in move_to_new_page()
907 page, mode); in move_to_new_page()
910 page, mode); in move_to_new_page()
924 page, mode); in move_to_new_page()
964 int force, enum migrate_mode mode) in __unmap_and_move() argument
972 if (!force || mode == MIGRATE_ASYNC) in __unmap_and_move()
1001 switch (mode) { in __unmap_and_move()
1043 rc = move_to_new_page(newpage, page, mode); in __unmap_and_move()
1074 rc = move_to_new_page(newpage, page, mode); in __unmap_and_move()
1188 int force, enum migrate_mode mode, in unmap_and_move() argument
1215 rc = __unmap_and_move(page, newpage, force, mode); in unmap_and_move()
1283 enum migrate_mode mode, int reason, in unmap_and_move_huge_page() argument
1317 switch (mode) { in unmap_and_move_huge_page()
1370 rc = move_to_new_page(new_hpage, hpage, mode); in unmap_and_move_huge_page()
1448 enum migrate_mode mode, int reason, unsigned int *ret_succeeded) in migrate_pages() argument
1466 trace_mm_migrate_pages_start(mode, reason); in migrate_pages()
1489 pass > 2, mode, reason, in migrate_pages()
1493 private, page, pass > 2, mode, in migrate_pages()
1598 nr_thp_failed, nr_thp_split, mode, reason); in migrate_pages()