Home
last modified time | relevance | path

Searched refs:cpc (Results 1 – 7 of 7) sorted by relevance

/fs/f2fs/
Dcheckpoint.c1340 static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc) in update_ckpt_flags() argument
1346 if (cpc->reason & CP_UMOUNT) { in update_ckpt_flags()
1361 if (cpc->reason & CP_TRIMMED) in update_ckpt_flags()
1366 if (cpc->reason & CP_UMOUNT) in update_ckpt_flags()
1371 if (cpc->reason & CP_FASTBOOT) in update_ckpt_flags()
1471 static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in do_checkpoint() argument
1519 if (__remain_node_summaries(cpc->reason)) in do_checkpoint()
1529 update_ckpt_flags(sbi, cpc); in do_checkpoint()
1543 if ((cpc->reason & CP_UMOUNT) && in do_checkpoint()
1578 if (__remain_node_summaries(cpc->reason)) { in do_checkpoint()
[all …]
Dsegment.c2049 static bool add_discard_addrs(struct f2fs_sb_info *sbi, struct cp_control *cpc, in add_discard_addrs() argument
2053 struct seg_entry *se = get_seg_entry(sbi, cpc->trim_start); in add_discard_addrs()
2059 bool force = (cpc->reason & CP_DISCARD); in add_discard_addrs()
2090 (end - start) < cpc->trim_minlen) in add_discard_addrs()
2099 de->start_blkaddr = START_BLOCK(sbi, cpc->trim_start); in add_discard_addrs()
2142 struct cp_control *cpc) in f2fs_clear_prefree_segments() argument
2151 bool force = (cpc->reason & CP_DISCARD); in f2fs_clear_prefree_segments()
2184 if (force && start >= cpc->trim_start && in f2fs_clear_prefree_segments()
2185 (end - 1) <= cpc->trim_end) in f2fs_clear_prefree_segments()
2226 (force && len < cpc->trim_minlen)) in f2fs_clear_prefree_segments()
[all …]
Dgc.c1811 struct cp_control cpc; in f2fs_gc() local
1829 cpc.reason = __get_cp_reason(sbi); in f2fs_gc()
1852 ret = f2fs_write_checkpoint(sbi, &cpc); in f2fs_gc()
1904 ret = f2fs_write_checkpoint(sbi, &cpc); in f2fs_gc()
1920 ret = f2fs_write_checkpoint(sbi, &cpc); in f2fs_gc()
2034 struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; in free_segment_range() local
2067 err = f2fs_write_checkpoint(sbi, &cpc); in free_segment_range()
2147 struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; in f2fs_resize_fs() local
2262 err = f2fs_write_checkpoint(sbi, &cpc); in f2fs_resize_fs()
Drecovery.c931 struct cp_control cpc = { in f2fs_recover_fsync_data() local
935 err = f2fs_write_checkpoint(sbi, &cpc); in f2fs_recover_fsync_data()
Dsuper.c1596 struct cp_control cpc = { in f2fs_put_super() local
1600 err = f2fs_write_checkpoint(sbi, &cpc); in f2fs_put_super()
1606 struct cp_control cpc = { in f2fs_put_super() local
1610 err = f2fs_write_checkpoint(sbi, &cpc); in f2fs_put_super()
2164 struct cp_control cpc; in f2fs_disable_checkpoint() local
2219 cpc.reason = CP_PAUSE; in f2fs_disable_checkpoint()
2222 err = f2fs_write_checkpoint(sbi, &cpc); in f2fs_disable_checkpoint()
4885 struct cp_control cpc = { in kill_f2fs_super() local
4889 f2fs_write_checkpoint(sbi, &cpc); in kill_f2fs_super()
Dnode.c3021 struct nat_entry_set *set, struct cp_control *cpc) in __flush_nat_entry_set() argument
3036 if ((cpc->reason & CP_UMOUNT) || in __flush_nat_entry_set()
3098 int f2fs_flush_nat_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc) in f2fs_flush_nat_entries() argument
3114 if (cpc->reason & CP_UMOUNT) { in f2fs_flush_nat_entries()
3130 if (cpc->reason & CP_UMOUNT || in f2fs_flush_nat_entries()
3147 err = __flush_nat_entry_set(sbi, set, cpc); in f2fs_flush_nat_entries()
Df2fs.h3669 int f2fs_flush_nat_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc);
3694 struct cp_control *cpc);
3712 struct cp_control *cpc);
3746 void f2fs_flush_sit_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc);
3811 int f2fs_write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc);