Lines Matching refs:cpc

1334 static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc)
1340 if (cpc->reason & CP_UMOUNT) {
1355 if (cpc->reason & CP_TRIMMED)
1360 if (cpc->reason & CP_UMOUNT)
1365 if (cpc->reason & CP_FASTBOOT)
1465 static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
1513 if (__remain_node_summaries(cpc->reason))
1523 update_ckpt_flags(sbi, cpc);
1537 if ((cpc->reason & CP_UMOUNT) &&
1572 if (__remain_node_summaries(cpc->reason)) {
1636 int f2fs_write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
1646 if (cpc->reason != CP_PAUSE)
1650 if (cpc->reason != CP_RESIZE)
1654 ((cpc->reason & CP_FASTBOOT) || (cpc->reason & CP_SYNC) ||
1655 ((cpc->reason & CP_DISCARD) && !sbi->discard_blks)))
1662 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "start block_ops");
1668 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish block_ops");
1673 if (cpc->reason & CP_DISCARD) {
1674 if (!f2fs_exist_trim_candidates(sbi, cpc)) {
1682 f2fs_flush_sit_entries(sbi, cpc);
1683 f2fs_clear_prefree_segments(sbi, cpc);
1698 err = f2fs_flush_nat_entries(sbi, cpc);
1705 f2fs_flush_sit_entries(sbi, cpc);
1710 err = do_checkpoint(sbi, cpc);
1716 f2fs_clear_prefree_segments(sbi, cpc);
1724 if (cpc->reason & CP_RECOVERY)
1729 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint");
1731 if (cpc->reason != CP_RESIZE)
1777 struct cp_control cpc = { .reason = CP_SYNC, };
1781 err = f2fs_write_checkpoint(sbi, &cpc);
1864 struct cp_control cpc;
1866 cpc.reason = __get_cp_reason(sbi);
1867 if (!test_opt(sbi, MERGE_CHECKPOINT) || cpc.reason != CP_SYNC) {
1871 ret = f2fs_write_checkpoint(sbi, &cpc);