Lines Matching refs:cpc

1319 static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc)
1325 if (cpc->reason & CP_UMOUNT) {
1340 if (cpc->reason & CP_TRIMMED)
1345 if (cpc->reason & CP_UMOUNT)
1350 if (cpc->reason & CP_FASTBOOT)
1450 static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
1498 if (__remain_node_summaries(cpc->reason))
1508 update_ckpt_flags(sbi, cpc);
1522 if ((cpc->reason & CP_UMOUNT) &&
1557 if (__remain_node_summaries(cpc->reason)) {
1621 int f2fs_write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
1631 if (cpc->reason != CP_PAUSE)
1635 if (cpc->reason != CP_RESIZE)
1639 ((cpc->reason & CP_FASTBOOT) || (cpc->reason & CP_SYNC) ||
1640 ((cpc->reason & CP_DISCARD) && !sbi->discard_blks)))
1647 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "start block_ops");
1653 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish block_ops");
1658 if (cpc->reason & CP_DISCARD) {
1659 if (!f2fs_exist_trim_candidates(sbi, cpc)) {
1667 f2fs_flush_sit_entries(sbi, cpc);
1668 f2fs_clear_prefree_segments(sbi, cpc);
1683 err = f2fs_flush_nat_entries(sbi, cpc);
1690 f2fs_flush_sit_entries(sbi, cpc);
1695 err = do_checkpoint(sbi, cpc);
1701 f2fs_clear_prefree_segments(sbi, cpc);
1709 if (cpc->reason & CP_RECOVERY)
1714 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint");
1716 if (cpc->reason != CP_RESIZE)
1762 struct cp_control cpc = { .reason = CP_SYNC, };
1766 err = f2fs_write_checkpoint(sbi, &cpc);
1849 struct cp_control cpc;
1851 cpc.reason = __get_cp_reason(sbi);
1852 if (!test_opt(sbi, MERGE_CHECKPOINT) || cpc.reason != CP_SYNC) {
1856 ret = f2fs_write_checkpoint(sbi, &cpc);