Lines Matching refs:cpc

1285 static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc)  in update_ckpt_flags()  argument
1293 if ((cpc->reason & CP_UMOUNT) && in update_ckpt_flags()
1298 if (cpc->reason & CP_TRIMMED) in update_ckpt_flags()
1303 if (cpc->reason & CP_UMOUNT) in update_ckpt_flags()
1308 if (cpc->reason & CP_FASTBOOT) in update_ckpt_flags()
1388 static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in do_checkpoint() argument
1439 if (__remain_node_summaries(cpc->reason)) in do_checkpoint()
1449 update_ckpt_flags(sbi, cpc); in do_checkpoint()
1463 if (enabled_nat_bits(sbi, cpc)) { in do_checkpoint()
1498 if (__remain_node_summaries(cpc->reason)) { in do_checkpoint()
1560 int f2fs_write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in f2fs_write_checkpoint() argument
1570 if (cpc->reason != CP_PAUSE) in f2fs_write_checkpoint()
1574 if (cpc->reason != CP_RESIZE) in f2fs_write_checkpoint()
1578 ((cpc->reason & CP_FASTBOOT) || (cpc->reason & CP_SYNC) || in f2fs_write_checkpoint()
1579 ((cpc->reason & CP_DISCARD) && !sbi->discard_blks))) in f2fs_write_checkpoint()
1586 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "start block_ops"); in f2fs_write_checkpoint()
1592 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish block_ops"); in f2fs_write_checkpoint()
1597 if (cpc->reason & CP_DISCARD) { in f2fs_write_checkpoint()
1598 if (!f2fs_exist_trim_candidates(sbi, cpc)) { in f2fs_write_checkpoint()
1606 f2fs_flush_sit_entries(sbi, cpc); in f2fs_write_checkpoint()
1607 f2fs_clear_prefree_segments(sbi, cpc); in f2fs_write_checkpoint()
1622 err = f2fs_flush_nat_entries(sbi, cpc); in f2fs_write_checkpoint()
1626 f2fs_flush_sit_entries(sbi, cpc); in f2fs_write_checkpoint()
1631 err = do_checkpoint(sbi, cpc); in f2fs_write_checkpoint()
1635 f2fs_clear_prefree_segments(sbi, cpc); in f2fs_write_checkpoint()
1642 if (cpc->reason & CP_RECOVERY) in f2fs_write_checkpoint()
1647 trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint"); in f2fs_write_checkpoint()
1649 if (cpc->reason != CP_RESIZE) in f2fs_write_checkpoint()