Lines Matching refs:cpc

1182 static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc)  in update_ckpt_flags()  argument
1190 if ((cpc->reason & CP_UMOUNT) && in update_ckpt_flags()
1195 if (cpc->reason & CP_TRIMMED) in update_ckpt_flags()
1200 if (cpc->reason & CP_UMOUNT) in update_ckpt_flags()
1205 if (cpc->reason & CP_FASTBOOT) in update_ckpt_flags()
1262 static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in do_checkpoint() argument
1320 if (__remain_node_summaries(cpc->reason)) in do_checkpoint()
1330 update_ckpt_flags(sbi, cpc); in do_checkpoint()
1344 if (enabled_nat_bits(sbi, cpc)) { in do_checkpoint()
1387 if (__remain_node_summaries(cpc->reason)) { in do_checkpoint()
1443 int f2fs_write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in f2fs_write_checkpoint() argument
1452 ((cpc->reason & CP_FASTBOOT) || (cpc->reason & CP_SYNC) || in f2fs_write_checkpoint()
1453 ((cpc->reason & CP_DISCARD) && !sbi->discard_blks))) in f2fs_write_checkpoint()
1464 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "start block_ops"); in f2fs_write_checkpoint()
1470 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish block_ops"); in f2fs_write_checkpoint()
1475 if (cpc->reason & CP_DISCARD) { in f2fs_write_checkpoint()
1476 if (!f2fs_exist_trim_candidates(sbi, cpc)) { in f2fs_write_checkpoint()
1484 f2fs_flush_sit_entries(sbi, cpc); in f2fs_write_checkpoint()
1485 f2fs_clear_prefree_segments(sbi, cpc); in f2fs_write_checkpoint()
1500 f2fs_flush_nat_entries(sbi, cpc); in f2fs_write_checkpoint()
1501 f2fs_flush_sit_entries(sbi, cpc); in f2fs_write_checkpoint()
1504 err = do_checkpoint(sbi, cpc); in f2fs_write_checkpoint()
1508 f2fs_clear_prefree_segments(sbi, cpc); in f2fs_write_checkpoint()
1513 if (cpc->reason & CP_RECOVERY) in f2fs_write_checkpoint()
1519 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint"); in f2fs_write_checkpoint()