Lines Matching full:cpc

1343 static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc)  in update_ckpt_flags()  argument
1351 if ((cpc->reason & CP_UMOUNT) && in update_ckpt_flags()
1356 if (cpc->reason & CP_TRIMMED) in update_ckpt_flags()
1361 if (cpc->reason & CP_UMOUNT) in update_ckpt_flags()
1366 if (cpc->reason & CP_FASTBOOT) in update_ckpt_flags()
1466 static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in do_checkpoint() argument
1514 if (__remain_node_summaries(cpc->reason)) in do_checkpoint()
1524 update_ckpt_flags(sbi, cpc); in do_checkpoint()
1538 if (enabled_nat_bits(sbi, cpc)) { in do_checkpoint()
1572 if (__remain_node_summaries(cpc->reason)) { in do_checkpoint()
1631 int f2fs_write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in f2fs_write_checkpoint() argument
1641 if (cpc->reason != CP_PAUSE) in f2fs_write_checkpoint()
1645 if (cpc->reason != CP_RESIZE) in f2fs_write_checkpoint()
1649 ((cpc->reason & CP_FASTBOOT) || (cpc->reason & CP_SYNC) || in f2fs_write_checkpoint()
1650 ((cpc->reason & CP_DISCARD) && !sbi->discard_blks))) in f2fs_write_checkpoint()
1657 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "start block_ops"); in f2fs_write_checkpoint()
1663 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish block_ops"); in f2fs_write_checkpoint()
1668 if (cpc->reason & CP_DISCARD) { in f2fs_write_checkpoint()
1669 if (!f2fs_exist_trim_candidates(sbi, cpc)) { in f2fs_write_checkpoint()
1677 f2fs_flush_sit_entries(sbi, cpc); in f2fs_write_checkpoint()
1678 f2fs_clear_prefree_segments(sbi, cpc); in f2fs_write_checkpoint()
1693 err = f2fs_flush_nat_entries(sbi, cpc); in f2fs_write_checkpoint()
1700 f2fs_flush_sit_entries(sbi, cpc); in f2fs_write_checkpoint()
1705 err = do_checkpoint(sbi, cpc); in f2fs_write_checkpoint()
1711 f2fs_clear_prefree_segments(sbi, cpc); in f2fs_write_checkpoint()
1720 if (cpc->reason & CP_RECOVERY) in f2fs_write_checkpoint()
1725 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint"); in f2fs_write_checkpoint()
1727 if (cpc->reason != CP_RESIZE) in f2fs_write_checkpoint()
1773 struct cp_control cpc = { .reason = CP_SYNC, }; in __write_checkpoint_sync() local
1777 err = f2fs_write_checkpoint(sbi, &cpc); in __write_checkpoint_sync()
1860 struct cp_control cpc; in f2fs_issue_checkpoint() local
1862 cpc.reason = __get_cp_reason(sbi); in f2fs_issue_checkpoint()
1863 if (!test_opt(sbi, MERGE_CHECKPOINT) || cpc.reason != CP_SYNC || in f2fs_issue_checkpoint()
1868 ret = f2fs_write_checkpoint(sbi, &cpc); in f2fs_issue_checkpoint()