Lines Matching refs:cur_seg
45 #define prev_zone(cur) (c.cur_seg[cur] - c.segs_per_zone)
46 #define next_zone(cur) (c.cur_seg[cur] + c.segs_per_zone)
197 if (c.cur_seg[i] == c.cur_seg[j]) { in verify_cur_segs()
207 c.cur_seg[0] = 0; in verify_cur_segs()
209 c.cur_seg[i] = next_zone(i - 1); in verify_cur_segs()
549 c.cur_seg[CURSEG_HOT_NODE] = 0; in f2fs_prepare_super_block()
550 c.cur_seg[CURSEG_WARM_NODE] = 0; in f2fs_prepare_super_block()
551 c.cur_seg[CURSEG_COLD_NODE] = 0; in f2fs_prepare_super_block()
552 c.cur_seg[CURSEG_HOT_DATA] = 1; in f2fs_prepare_super_block()
553 c.cur_seg[CURSEG_COLD_DATA] = 0; in f2fs_prepare_super_block()
554 c.cur_seg[CURSEG_WARM_DATA] = 0; in f2fs_prepare_super_block()
556 c.cur_seg[CURSEG_HOT_NODE] = in f2fs_prepare_super_block()
558 c.cur_seg[CURSEG_WARM_NODE] = prev_zone(CURSEG_HOT_NODE); in f2fs_prepare_super_block()
559 c.cur_seg[CURSEG_COLD_NODE] = prev_zone(CURSEG_WARM_NODE); in f2fs_prepare_super_block()
560 c.cur_seg[CURSEG_HOT_DATA] = prev_zone(CURSEG_COLD_NODE); in f2fs_prepare_super_block()
561 c.cur_seg[CURSEG_COLD_DATA] = 0; in f2fs_prepare_super_block()
562 c.cur_seg[CURSEG_WARM_DATA] = next_zone(CURSEG_COLD_DATA); in f2fs_prepare_super_block()
564 c.cur_seg[CURSEG_HOT_NODE] = 0; in f2fs_prepare_super_block()
565 c.cur_seg[CURSEG_WARM_NODE] = next_zone(CURSEG_HOT_NODE); in f2fs_prepare_super_block()
566 c.cur_seg[CURSEG_COLD_NODE] = next_zone(CURSEG_WARM_NODE); in f2fs_prepare_super_block()
567 c.cur_seg[CURSEG_HOT_DATA] = next_zone(CURSEG_COLD_NODE); in f2fs_prepare_super_block()
568 c.cur_seg[CURSEG_WARM_DATA] = next_zone(CURSEG_HOT_DATA); in f2fs_prepare_super_block()
569 c.cur_seg[CURSEG_COLD_DATA] = next_zone(CURSEG_WARM_DATA); in f2fs_prepare_super_block()
571 c.cur_seg[CURSEG_HOT_NODE] = 0; in f2fs_prepare_super_block()
572 c.cur_seg[CURSEG_WARM_NODE] = next_zone(CURSEG_HOT_NODE); in f2fs_prepare_super_block()
573 c.cur_seg[CURSEG_COLD_NODE] = next_zone(CURSEG_WARM_NODE); in f2fs_prepare_super_block()
574 c.cur_seg[CURSEG_HOT_DATA] = next_zone(CURSEG_COLD_NODE); in f2fs_prepare_super_block()
575 c.cur_seg[CURSEG_COLD_DATA] = in f2fs_prepare_super_block()
578 c.cur_seg[CURSEG_WARM_DATA] = in f2fs_prepare_super_block()
741 set_cp(cur_node_segno[0], c.cur_seg[CURSEG_HOT_NODE]); in f2fs_write_check_point_pack()
742 set_cp(cur_node_segno[1], c.cur_seg[CURSEG_WARM_NODE]); in f2fs_write_check_point_pack()
743 set_cp(cur_node_segno[2], c.cur_seg[CURSEG_COLD_NODE]); in f2fs_write_check_point_pack()
744 set_cp(cur_data_segno[0], c.cur_seg[CURSEG_HOT_DATA]); in f2fs_write_check_point_pack()
745 set_cp(cur_data_segno[1], c.cur_seg[CURSEG_WARM_DATA]); in f2fs_write_check_point_pack()
746 set_cp(cur_data_segno[2], c.cur_seg[CURSEG_COLD_DATA]); in f2fs_write_check_point_pack()
1173 offset += c.cur_seg[CURSEG_WARM_NODE] * c.blks_per_seg; in f2fs_discard_obsolete_dnode()
1176 c.cur_seg[CURSEG_HOT_NODE] * c.blks_per_seg + c.quota_inum + c.lpf_inum; in f2fs_discard_obsolete_dnode()
1225 c.cur_seg[CURSEG_HOT_NODE] * in f2fs_write_root_inode()
1272 c.cur_seg[CURSEG_HOT_DATA] * c.blks_per_seg; in f2fs_write_root_inode()
1280 main_area_node_seg_blk_offset += c.cur_seg[CURSEG_HOT_NODE] * in f2fs_write_root_inode()
1285 c.cur_seg[CURSEG_HOT_NODE], in f2fs_write_root_inode()
1385 c.cur_seg[CURSEG_HOT_NODE] * in f2fs_write_qf_inode()
1390 c.cur_seg[CURSEG_HOT_DATA] * c.blks_per_seg + 1 in f2fs_write_qf_inode()
1413 main_area_node_seg_blk_offset += c.cur_seg[CURSEG_HOT_NODE] * in f2fs_write_qf_inode()
1418 c.cur_seg[CURSEG_HOT_NODE], in f2fs_write_qf_inode()
1450 c.cur_seg[CURSEG_HOT_NODE] * in f2fs_update_nat_root()
1459 c.cur_seg[CURSEG_HOT_NODE] * c.blks_per_seg); in f2fs_update_nat_root()
1511 data_blk_offset += c.cur_seg[CURSEG_HOT_DATA] * c.blks_per_seg + in f2fs_add_default_dentry_lpf()
1547 c.cur_seg[CURSEG_HOT_NODE] * c.blks_per_seg + in f2fs_write_lpf_inode()
1602 main_area_node_seg_blk_offset += c.cur_seg[CURSEG_HOT_NODE] * in f2fs_write_lpf_inode()
1607 c.cur_seg[CURSEG_HOT_NODE], in f2fs_write_lpf_inode()
1666 data_blk_offset += c.cur_seg[CURSEG_HOT_DATA] * in f2fs_add_default_dentry_root()