Lines Matching refs:rc
600 int rc; in migrate_page() local
604 rc = migrate_page_move_mapping(mapping, newpage, page, NULL, mode, 0); in migrate_page()
606 if (rc != MIGRATEPAGE_SUCCESS) in migrate_page()
607 return rc; in migrate_page()
624 int rc; in buffer_migrate_page() local
631 rc = migrate_page_move_mapping(mapping, newpage, page, head, mode, 0); in buffer_migrate_page()
633 if (rc != MIGRATEPAGE_SUCCESS) in buffer_migrate_page()
634 return rc; in buffer_migrate_page()
686 int rc; in writeout() local
706 rc = mapping->a_ops->writepage(page, &wbc); in writeout()
708 if (rc != AOP_WRITEPAGE_ACTIVATE) in writeout()
712 return (rc < 0) ? -EIO : -EAGAIN; in writeout()
754 int rc; in move_to_new_page() local
761 rc = migrate_page(mapping, newpage, page, mode); in move_to_new_page()
769 rc = mapping->a_ops->migratepage(mapping, newpage, page, mode); in move_to_new_page()
771 rc = fallback_migrate_page(mapping, newpage, page, mode); in move_to_new_page()
777 if (rc == MIGRATEPAGE_SUCCESS) { in move_to_new_page()
782 return rc; in move_to_new_page()
788 int rc = -EAGAIN; in __unmap_and_move() local
823 rc = -EBUSY; in __unmap_and_move()
867 rc = balloon_page_migrate(newpage, page, mode); in __unmap_and_move()
899 rc = move_to_new_page(newpage, page, mode); in __unmap_and_move()
903 rc == MIGRATEPAGE_SUCCESS ? newpage : page); in __unmap_and_move()
913 return rc; in __unmap_and_move()
936 int rc = MIGRATEPAGE_SUCCESS; in unmap_and_move() local
954 rc = __unmap_and_move(page, newpage, force, mode); in unmap_and_move()
955 if (rc == MIGRATEPAGE_SUCCESS) in unmap_and_move()
959 if (rc != -EAGAIN) { in unmap_and_move()
970 if (reason == MR_MEMORY_FAILURE && rc == MIGRATEPAGE_SUCCESS) { in unmap_and_move()
993 else if (rc == MIGRATEPAGE_SUCCESS && unlikely(!is_lru)) { in unmap_and_move()
1000 if (rc) in unmap_and_move()
1001 *result = rc; in unmap_and_move()
1005 return rc; in unmap_and_move()
1031 int rc = -EAGAIN; in unmap_and_move_huge_page() local
1065 rc = -EBUSY; in unmap_and_move_huge_page()
1082 rc = move_to_new_page(new_hpage, hpage, mode); in unmap_and_move_huge_page()
1086 rc == MIGRATEPAGE_SUCCESS ? new_hpage : hpage); in unmap_and_move_huge_page()
1094 if (rc == MIGRATEPAGE_SUCCESS) { in unmap_and_move_huge_page()
1102 if (rc != -EAGAIN) in unmap_and_move_huge_page()
1116 if (rc) in unmap_and_move_huge_page()
1117 *result = rc; in unmap_and_move_huge_page()
1121 return rc; in unmap_and_move_huge_page()
1156 int rc; in migrate_pages() local
1168 rc = unmap_and_move_huge_page(get_new_page, in migrate_pages()
1172 rc = unmap_and_move(get_new_page, put_new_page, in migrate_pages()
1176 switch(rc) { in migrate_pages()
1198 rc = nr_failed; in migrate_pages()
1209 return rc; in migrate_pages()