Lines Matching refs:get_newsb
240 block_t new_sum_blkaddr = get_newsb(ssa_blkaddr); in migrate_ssa()
241 block_t end_sum_blkaddr = get_newsb(main_blkaddr); in migrate_ssa()
295 nat_blocks = get_newsb(segment_count_nat) >> 1; in shrink_nats()
331 block_t new_nat_blkaddr = get_newsb(nat_blkaddr); in migrate_nat()
368 nat_blocks = get_newsb(segment_count_nat) >> 1; in migrate_nat()
375 get_newsb(segment_count_nat)); in migrate_nat()
400 block_t sit_blks = get_newsb(segment_count_sit) << in migrate_sit()
410 ret = dev_write_block(sit_blk, get_newsb(sit_blkaddr) + index); in migrate_sit()
412 DBG(3, "Write zero sit: %x\n", get_newsb(sit_blkaddr) + index); in migrate_sit()
427 blk_addr = get_newsb(sit_blkaddr) + pre_ofs; in migrate_sit()
441 blk_addr = get_newsb(sit_blkaddr) + ofs; in migrate_sit()
448 get_newsb(sit_blkaddr)); in migrate_sit()
459 block_t new_cp_blks = 1 + get_newsb(cp_payload); in rebuild_checkpoint()
475 set_cp(overprov_segment_count, (get_newsb(segment_count_main) - in rebuild_checkpoint()
492 new_segment_count = get_newsb(segment_count_main) - in rebuild_checkpoint()
496 set_cp(user_block_count, ((get_newsb(segment_count_main) - in rebuild_checkpoint()
502 set_cp(cp_pack_start_sum, 1 + get_newsb(cp_payload)); in rebuild_checkpoint()
503 set_cp(cp_pack_total_block_count, 8 + orphan_blks + get_newsb(cp_payload)); in rebuild_checkpoint()
520 ((get_newsb(segment_count_sit) / 2) << in rebuild_checkpoint()
521 get_newsb(log_blocks_per_seg)) / 8); in rebuild_checkpoint()
523 ((get_newsb(segment_count_nat) / 2) << in rebuild_checkpoint()
524 get_newsb(log_blocks_per_seg)) / 8); in rebuild_checkpoint()
565 for (i = 0; i < get_newsb(cp_payload); i++) { in rebuild_checkpoint()
612 overprov_segment_count = (get_newsb(segment_count_main) - in f2fs_resize_check()
616 overprov_segment_count += 2 * get_newsb(segs_per_sec); in f2fs_resize_check()
618 user_block_count = (get_newsb(segment_count_main) - in f2fs_resize_check()
648 if (get_sb(segment_count_nat) > get_newsb(segment_count_nat)) { in f2fs_resize_grow()
657 new_main_blkaddr = get_newsb(main_blkaddr); in f2fs_resize_grow()
706 if (get_sb(segment_count_nat) > get_newsb(segment_count_nat)) { in f2fs_resize_shrink()
715 new_main_blkaddr = get_newsb(main_blkaddr); in f2fs_resize_shrink()
719 new_end_blkaddr = (get_newsb(segment_count_main) << in f2fs_resize_shrink()
720 get_newsb(log_blocks_per_seg)) + get_newsb(main_blkaddr); in f2fs_resize_shrink()