• Home
  • Raw
  • Download

Lines Matching refs:rc

680 	int rc;  in migrate_page()  local
684 rc = migrate_page_move_mapping(mapping, newpage, page, 0); in migrate_page()
686 if (rc != MIGRATEPAGE_SUCCESS) in migrate_page()
687 return rc; in migrate_page()
741 int rc; in __buffer_migrate_page() local
773 rc = -EAGAIN; in __buffer_migrate_page()
783 rc = migrate_page_move_mapping(mapping, newpage, page, 0); in __buffer_migrate_page()
784 if (rc != MIGRATEPAGE_SUCCESS) in __buffer_migrate_page()
807 rc = MIGRATEPAGE_SUCCESS; in __buffer_migrate_page()
818 return rc; in __buffer_migrate_page()
858 int rc; in writeout() local
878 rc = mapping->a_ops->writepage(page, &wbc); in writeout()
880 if (rc != AOP_WRITEPAGE_ACTIVATE) in writeout()
884 return (rc < 0) ? -EIO : -EAGAIN; in writeout()
931 int rc = -EAGAIN; in move_to_new_page() local
941 rc = migrate_page(mapping, newpage, page, mode); in move_to_new_page()
950 rc = mapping->a_ops->migratepage(mapping, newpage, in move_to_new_page()
953 rc = fallback_migrate_page(mapping, newpage, in move_to_new_page()
962 rc = MIGRATEPAGE_SUCCESS; in move_to_new_page()
967 rc = mapping->a_ops->migratepage(mapping, newpage, in move_to_new_page()
969 WARN_ON_ONCE(rc == MIGRATEPAGE_SUCCESS && in move_to_new_page()
977 if (rc == MIGRATEPAGE_SUCCESS) { in move_to_new_page()
1001 return rc; in move_to_new_page()
1007 int rc = -EAGAIN; in __unmap_and_move() local
1047 rc = -EBUSY; in __unmap_and_move()
1084 rc = move_to_new_page(newpage, page, mode); in __unmap_and_move()
1116 rc = move_to_new_page(newpage, page, mode); in __unmap_and_move()
1120 rc == MIGRATEPAGE_SUCCESS ? newpage : page, false); in __unmap_and_move()
1139 if (rc == MIGRATEPAGE_SUCCESS) { in __unmap_and_move()
1146 return rc; in __unmap_and_move()
1170 int rc = MIGRATEPAGE_SUCCESS; in unmap_and_move() local
1197 rc = __unmap_and_move(page, newpage, force, mode); in unmap_and_move()
1198 if (rc == MIGRATEPAGE_SUCCESS) in unmap_and_move()
1202 if (rc != -EAGAIN) { in unmap_and_move()
1226 if (rc == MIGRATEPAGE_SUCCESS) { in unmap_and_move()
1238 if (rc != -EAGAIN) { in unmap_and_move()
1259 return rc; in unmap_and_move()
1285 int rc = -EAGAIN; in unmap_and_move_huge_page() local
1325 rc = -EBUSY; in unmap_and_move_huge_page()
1342 rc = move_to_new_page(new_hpage, hpage, mode); in unmap_and_move_huge_page()
1346 rc == MIGRATEPAGE_SUCCESS ? new_hpage : hpage, false); in unmap_and_move_huge_page()
1354 if (rc == MIGRATEPAGE_SUCCESS) { in unmap_and_move_huge_page()
1362 if (rc != -EAGAIN) in unmap_and_move_huge_page()
1375 return rc; in unmap_and_move_huge_page()
1410 int rc; in migrate_pages() local
1423 rc = unmap_and_move_huge_page(get_new_page, in migrate_pages()
1427 rc = unmap_and_move(get_new_page, put_new_page, in migrate_pages()
1431 switch(rc) { in migrate_pages()
1446 rc = split_huge_page_to_list(page, from); in migrate_pages()
1448 if (!rc) { in migrate_pages()
1474 rc = nr_failed; in migrate_pages()
1485 return rc; in migrate_pages()