Lines Matching full:cpc
1309 static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc) in update_ckpt_flags() argument
1317 if ((cpc->reason & CP_UMOUNT) && in update_ckpt_flags()
1322 if (cpc->reason & CP_TRIMMED) in update_ckpt_flags()
1327 if (cpc->reason & CP_UMOUNT) in update_ckpt_flags()
1332 if (cpc->reason & CP_FASTBOOT) in update_ckpt_flags()
1412 static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in do_checkpoint() argument
1463 if (__remain_node_summaries(cpc->reason)) in do_checkpoint()
1473 update_ckpt_flags(sbi, cpc); in do_checkpoint()
1487 if (enabled_nat_bits(sbi, cpc)) { in do_checkpoint()
1522 if (__remain_node_summaries(cpc->reason)) { in do_checkpoint()
1585 int f2fs_write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in f2fs_write_checkpoint() argument
1595 if (cpc->reason != CP_PAUSE) in f2fs_write_checkpoint()
1599 if (cpc->reason != CP_RESIZE) in f2fs_write_checkpoint()
1603 ((cpc->reason & CP_FASTBOOT) || (cpc->reason & CP_SYNC) || in f2fs_write_checkpoint()
1604 ((cpc->reason & CP_DISCARD) && !sbi->discard_blks))) in f2fs_write_checkpoint()
1611 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "start block_ops"); in f2fs_write_checkpoint()
1617 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish block_ops"); in f2fs_write_checkpoint()
1622 if (cpc->reason & CP_DISCARD) { in f2fs_write_checkpoint()
1623 if (!f2fs_exist_trim_candidates(sbi, cpc)) { in f2fs_write_checkpoint()
1631 f2fs_flush_sit_entries(sbi, cpc); in f2fs_write_checkpoint()
1632 f2fs_clear_prefree_segments(sbi, cpc); in f2fs_write_checkpoint()
1647 err = f2fs_flush_nat_entries(sbi, cpc); in f2fs_write_checkpoint()
1651 f2fs_flush_sit_entries(sbi, cpc); in f2fs_write_checkpoint()
1656 err = do_checkpoint(sbi, cpc); in f2fs_write_checkpoint()
1660 f2fs_clear_prefree_segments(sbi, cpc); in f2fs_write_checkpoint()
1667 if (cpc->reason & CP_RECOVERY) in f2fs_write_checkpoint()
1672 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint"); in f2fs_write_checkpoint()
1674 if (cpc->reason != CP_RESIZE) in f2fs_write_checkpoint()