Searched refs:cpc (Results 1 – 7 of 7) sorted by relevance
/fs/f2fs/ |
D | checkpoint.c | 1302 static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc) in update_ckpt_flags() argument 1310 if ((cpc->reason & CP_UMOUNT) && in update_ckpt_flags() 1315 if (cpc->reason & CP_TRIMMED) in update_ckpt_flags() 1320 if (cpc->reason & CP_UMOUNT) in update_ckpt_flags() 1325 if (cpc->reason & CP_FASTBOOT) in update_ckpt_flags() 1405 static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in do_checkpoint() argument 1456 if (__remain_node_summaries(cpc->reason)) in do_checkpoint() 1466 update_ckpt_flags(sbi, cpc); in do_checkpoint() 1480 if (enabled_nat_bits(sbi, cpc)) { in do_checkpoint() 1515 if (__remain_node_summaries(cpc->reason)) { in do_checkpoint() [all …]
|
D | segment.c | 1852 static bool add_discard_addrs(struct f2fs_sb_info *sbi, struct cp_control *cpc, in add_discard_addrs() argument 1857 struct seg_entry *se = get_seg_entry(sbi, cpc->trim_start); in add_discard_addrs() 1863 bool force = (cpc->reason & CP_DISCARD); in add_discard_addrs() 1891 && (end - start) < cpc->trim_minlen) in add_discard_addrs() 1900 de->start_blkaddr = START_BLOCK(sbi, cpc->trim_start); in add_discard_addrs() 1943 struct cp_control *cpc) in f2fs_clear_prefree_segments() argument 1952 bool force = (cpc->reason & CP_DISCARD); in f2fs_clear_prefree_segments() 1981 if (force && start >= cpc->trim_start && in f2fs_clear_prefree_segments() 1982 (end - 1) <= cpc->trim_end) in f2fs_clear_prefree_segments() 2018 (force && len < cpc->trim_minlen)) in f2fs_clear_prefree_segments() [all …]
|
D | gc.c | 1307 struct cp_control cpc; in f2fs_gc() local 1326 cpc.reason = __get_cp_reason(sbi); in f2fs_gc() 1347 ret = f2fs_write_checkpoint(sbi, &cpc); in f2fs_gc() 1399 ret = f2fs_write_checkpoint(sbi, &cpc); in f2fs_gc() 1439 struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; in free_segment_range() local 1485 err = f2fs_write_checkpoint(sbi, &cpc); in free_segment_range() 1564 struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; in f2fs_resize_fs() local 1648 err = f2fs_write_checkpoint(sbi, &cpc); in f2fs_resize_fs()
|
D | super.c | 1246 struct cp_control cpc = { in f2fs_put_super() local 1249 f2fs_write_checkpoint(sbi, &cpc); in f2fs_put_super() 1257 struct cp_control cpc = { in f2fs_put_super() local 1260 f2fs_write_checkpoint(sbi, &cpc); in f2fs_put_super() 1337 struct cp_control cpc; in f2fs_sync_fs() local 1339 cpc.reason = __get_cp_reason(sbi); in f2fs_sync_fs() 1342 err = f2fs_write_checkpoint(sbi, &cpc); in f2fs_sync_fs() 1727 struct cp_control cpc; in f2fs_disable_checkpoint() local 1764 cpc.reason = CP_PAUSE; in f2fs_disable_checkpoint() 1766 err = f2fs_write_checkpoint(sbi, &cpc); in f2fs_disable_checkpoint() [all …]
|
D | f2fs.h | 1932 struct cp_control *cpc) in enabled_nat_bits() argument 1936 return (cpc) ? (cpc->reason & CP_UMOUNT) && set : set; in enabled_nat_bits() 3340 int f2fs_flush_nat_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc); 3367 struct cp_control *cpc); 3378 struct cp_control *cpc); 3408 void f2fs_flush_sit_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc); 3453 int f2fs_write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc);
|
D | recovery.c | 890 struct cp_control cpc = { in f2fs_recover_fsync_data() local 893 err = f2fs_write_checkpoint(sbi, &cpc); in f2fs_recover_fsync_data()
|
D | node.c | 2874 struct nat_entry_set *set, struct cp_control *cpc) in __flush_nat_entry_set() argument 2889 if (enabled_nat_bits(sbi, cpc) || in __flush_nat_entry_set() 2951 int f2fs_flush_nat_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc) in f2fs_flush_nat_entries() argument 2967 if (enabled_nat_bits(sbi, cpc)) { in f2fs_flush_nat_entries() 2983 if (enabled_nat_bits(sbi, cpc) || in f2fs_flush_nat_entries() 2999 err = __flush_nat_entry_set(sbi, set, cpc); in f2fs_flush_nat_entries()
|