Lines Matching refs:get_newsb
238 block_t new_sum_blkaddr = get_newsb(ssa_blkaddr); in migrate_ssa()
239 block_t end_sum_blkaddr = get_newsb(main_blkaddr); in migrate_ssa()
293 nat_blocks = get_newsb(segment_count_nat) >> 1; in shrink_nats()
329 block_t new_nat_blkaddr = get_newsb(nat_blkaddr); in migrate_nat()
366 nat_blocks = get_newsb(segment_count_nat) >> 1; in migrate_nat()
373 get_newsb(segment_count_nat)); in migrate_nat()
398 block_t sit_blks = get_newsb(segment_count_sit) << in migrate_sit()
408 ret = dev_write_block(sit_blk, get_newsb(sit_blkaddr) + index); in migrate_sit()
410 DBG(3, "Write zero sit: %x\n", get_newsb(sit_blkaddr) + index); in migrate_sit()
425 blk_addr = get_newsb(sit_blkaddr) + pre_ofs; in migrate_sit()
439 blk_addr = get_newsb(sit_blkaddr) + ofs; in migrate_sit()
446 get_newsb(sit_blkaddr)); in migrate_sit()
457 block_t new_cp_blks = 1 + get_newsb(cp_payload); in rebuild_checkpoint()
473 set_cp(overprov_segment_count, (get_newsb(segment_count_main) - in rebuild_checkpoint()
480 new_segment_count = get_newsb(segment_count_main) - in rebuild_checkpoint()
484 set_cp(user_block_count, ((get_newsb(segment_count_main) - in rebuild_checkpoint()
490 set_cp(cp_pack_start_sum, 1 + get_newsb(cp_payload)); in rebuild_checkpoint()
491 set_cp(cp_pack_total_block_count, 8 + orphan_blks + get_newsb(cp_payload)); in rebuild_checkpoint()
508 ((get_newsb(segment_count_sit) / 2) << in rebuild_checkpoint()
509 get_newsb(log_blocks_per_seg)) / 8); in rebuild_checkpoint()
511 ((get_newsb(segment_count_nat) / 2) << in rebuild_checkpoint()
512 get_newsb(log_blocks_per_seg)) / 8); in rebuild_checkpoint()
553 for (i = 0; i < get_newsb(cp_payload); i++) { in rebuild_checkpoint()
612 if (get_sb(segment_count_nat) > get_newsb(segment_count_nat)) { in f2fs_resize_grow()
621 new_main_blkaddr = get_newsb(main_blkaddr); in f2fs_resize_grow()
669 overprov_segment_count = (get_newsb(segment_count_main) - in f2fs_resize_shrink()
674 user_block_count = (get_newsb(segment_count_main) - in f2fs_resize_shrink()
681 if (get_sb(segment_count_nat) > get_newsb(segment_count_nat)) { in f2fs_resize_shrink()
690 new_main_blkaddr = get_newsb(main_blkaddr); in f2fs_resize_shrink()
694 new_end_blkaddr = (get_newsb(segment_count_main) << in f2fs_resize_shrink()
695 get_newsb(log_blocks_per_seg)) + get_newsb(main_blkaddr); in f2fs_resize_shrink()