Lines Matching refs:cpc
922 static void do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in do_checkpoint() argument
992 if (__remain_node_summaries(cpc->reason)) in do_checkpoint()
1001 if (cpc->reason == CP_UMOUNT) in do_checkpoint()
1006 if (cpc->reason == CP_FASTBOOT) in do_checkpoint()
1049 if (__remain_node_summaries(cpc->reason)) { in do_checkpoint()
1089 clear_prefree_segments(sbi, cpc); in do_checkpoint()
1096 void write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in write_checkpoint() argument
1104 (cpc->reason == CP_FASTBOOT || cpc->reason == CP_SYNC || in write_checkpoint()
1105 (cpc->reason == CP_DISCARD && !sbi->discard_blks))) in write_checkpoint()
1112 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "start block_ops"); in write_checkpoint()
1117 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish block_ops"); in write_checkpoint()
1133 flush_sit_entries(sbi, cpc); in write_checkpoint()
1136 do_checkpoint(sbi, cpc); in write_checkpoint()
1141 if (cpc->reason == CP_RECOVERY) in write_checkpoint()
1149 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint"); in write_checkpoint()