Lines Matching refs:cpc
1309 static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc)
1317 if ((cpc->reason & CP_UMOUNT) &&
1322 if (cpc->reason & CP_TRIMMED)
1327 if (cpc->reason & CP_UMOUNT)
1332 if (cpc->reason & CP_FASTBOOT)
1412 static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
1463 if (__remain_node_summaries(cpc->reason))
1473 update_ckpt_flags(sbi, cpc);
1487 if (enabled_nat_bits(sbi, cpc)) {
1522 if (__remain_node_summaries(cpc->reason)) {
1584 int f2fs_write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
1594 if (cpc->reason != CP_PAUSE)
1598 if (cpc->reason != CP_RESIZE)
1602 ((cpc->reason & CP_FASTBOOT) || (cpc->reason & CP_SYNC) ||
1603 ((cpc->reason & CP_DISCARD) && !sbi->discard_blks)))
1610 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "start block_ops");
1616 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish block_ops");
1621 if (cpc->reason & CP_DISCARD) {
1622 if (!f2fs_exist_trim_candidates(sbi, cpc)) {
1630 f2fs_flush_sit_entries(sbi, cpc);
1631 f2fs_clear_prefree_segments(sbi, cpc);
1646 err = f2fs_flush_nat_entries(sbi, cpc);
1650 f2fs_flush_sit_entries(sbi, cpc);
1655 err = do_checkpoint(sbi, cpc);
1659 f2fs_clear_prefree_segments(sbi, cpc);
1666 if (cpc->reason & CP_RECOVERY)
1671 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint");
1673 if (cpc->reason != CP_RESIZE)