Searched refs:cpc (Results 1 – 7 of 7) sorted by relevance
/fs/f2fs/ |
D | checkpoint.c | 1314 static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc) in update_ckpt_flags() argument 1322 if ((cpc->reason & CP_UMOUNT) && in update_ckpt_flags() 1327 if (cpc->reason & CP_TRIMMED) in update_ckpt_flags() 1332 if (cpc->reason & CP_UMOUNT) in update_ckpt_flags() 1337 if (cpc->reason & CP_FASTBOOT) in update_ckpt_flags() 1437 static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) in do_checkpoint() argument 1487 if (__remain_node_summaries(cpc->reason)) in do_checkpoint() 1497 update_ckpt_flags(sbi, cpc); in do_checkpoint() 1511 if (enabled_nat_bits(sbi, cpc)) { in do_checkpoint() 1545 if (__remain_node_summaries(cpc->reason)) { in do_checkpoint() [all …]
|
D | segment.c | 1917 static bool add_discard_addrs(struct f2fs_sb_info *sbi, struct cp_control *cpc, in add_discard_addrs() argument 1922 struct seg_entry *se = get_seg_entry(sbi, cpc->trim_start); in add_discard_addrs() 1928 bool force = (cpc->reason & CP_DISCARD); in add_discard_addrs() 1956 && (end - start) < cpc->trim_minlen) in add_discard_addrs() 1965 de->start_blkaddr = START_BLOCK(sbi, cpc->trim_start); in add_discard_addrs() 2008 struct cp_control *cpc) in f2fs_clear_prefree_segments() argument 2017 bool force = (cpc->reason & CP_DISCARD); in f2fs_clear_prefree_segments() 2046 if (force && start >= cpc->trim_start && in f2fs_clear_prefree_segments() 2047 (end - 1) <= cpc->trim_end) in f2fs_clear_prefree_segments() 2083 (force && len < cpc->trim_minlen)) in f2fs_clear_prefree_segments() [all …]
|
D | gc.c | 1762 struct cp_control cpc; in f2fs_gc() local 1781 cpc.reason = __get_cp_reason(sbi); in f2fs_gc() 1802 ret = f2fs_write_checkpoint(sbi, &cpc); in f2fs_gc() 1856 ret = f2fs_write_checkpoint(sbi, &cpc); in f2fs_gc() 1871 ret = f2fs_write_checkpoint(sbi, &cpc); in f2fs_gc() 1947 struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; in free_segment_range() local 1993 err = f2fs_write_checkpoint(sbi, &cpc); in free_segment_range() 2073 struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; in f2fs_resize_fs() local 2183 err = f2fs_write_checkpoint(sbi, &cpc); in f2fs_resize_fs()
|
D | super.c | 1468 struct cp_control cpc = { in f2fs_put_super() local 1471 f2fs_write_checkpoint(sbi, &cpc); in f2fs_put_super() 1479 struct cp_control cpc = { in f2fs_put_super() local 1482 f2fs_write_checkpoint(sbi, &cpc); in f2fs_put_super() 1991 struct cp_control cpc; in f2fs_disable_checkpoint() local 2034 cpc.reason = CP_PAUSE; in f2fs_disable_checkpoint() 2036 err = f2fs_write_checkpoint(sbi, &cpc); in f2fs_disable_checkpoint() 4393 struct cp_control cpc = { in kill_f2fs_super() local 4396 f2fs_write_checkpoint(sbi, &cpc); in kill_f2fs_super()
|
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 | f2fs.h | 2109 struct cp_control *cpc) in enabled_nat_bits() argument 2113 return (cpc) ? (cpc->reason & CP_UMOUNT) && set : set; in enabled_nat_bits() 3574 int f2fs_flush_nat_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc); 3601 struct cp_control *cpc); 3619 struct cp_control *cpc); 3650 void f2fs_flush_sit_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc); 3703 int f2fs_write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc);
|
D | node.c | 2941 struct nat_entry_set *set, struct cp_control *cpc) in __flush_nat_entry_set() argument 2956 if (enabled_nat_bits(sbi, cpc) || in __flush_nat_entry_set() 3018 int f2fs_flush_nat_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc) in f2fs_flush_nat_entries() argument 3034 if (enabled_nat_bits(sbi, cpc)) { in f2fs_flush_nat_entries() 3050 if (enabled_nat_bits(sbi, cpc) || in f2fs_flush_nat_entries() 3067 err = __flush_nat_entry_set(sbi, set, cpc); in f2fs_flush_nat_entries()
|