• Home
  • Raw
  • Download

Lines Matching refs:get_sb

21 	uint32_t segment_size_bytes = 1 << (get_sb(log_blocksize) +  in get_new_sb()
22 get_sb(log_blocks_per_seg)); in get_new_sb()
23 uint32_t blks_per_seg = 1 << get_sb(log_blocks_per_seg); in get_new_sb()
24 uint32_t segs_per_zone = get_sb(segs_per_sec) * get_sb(secs_per_zone); in get_new_sb()
27 get_sb(log_sectors_per_block)); in get_new_sb()
43 blocks_for_sit = SIZE_ALIGN(get_sb(segment_count), SIT_ENTRY_PER_BLOCK); in get_new_sb()
46 set_sb(nat_blkaddr, get_sb(sit_blkaddr) + in get_new_sb()
47 get_sb(segment_count_sit) * blks_per_seg); in get_new_sb()
49 total_valid_blks_available = (get_sb(segment_count) - in get_new_sb()
50 (get_sb(segment_count_ckpt) + in get_new_sb()
51 get_sb(segment_count_sit))) * blks_per_seg; in get_new_sb()
60 max_nat_bitmap_size = (get_sb(segment_count_nat) << in get_new_sb()
61 get_sb(log_blocks_per_seg)) / 8; in get_new_sb()
62 set_sb(segment_count_nat, get_sb(segment_count_nat) * 2); in get_new_sb()
68 sit_bitmap_size = ((get_sb(segment_count_sit) / 2) << in get_new_sb()
69 get_sb(log_blocks_per_seg)) / 8; in get_new_sb()
102 get_sb(log_blocks_per_seg); in get_new_sb()
104 if (get_sb(segment_count_nat) > max_nat_segments) in get_new_sb()
107 set_sb(segment_count_nat, get_sb(segment_count_nat) * 2); in get_new_sb()
110 set_sb(ssa_blkaddr, get_sb(nat_blkaddr) + in get_new_sb()
111 get_sb(segment_count_nat) * blks_per_seg); in get_new_sb()
113 total_valid_blks_available = (get_sb(segment_count) - in get_new_sb()
114 (get_sb(segment_count_ckpt) + in get_new_sb()
115 get_sb(segment_count_sit) + in get_new_sb()
116 get_sb(segment_count_nat))) * blks_per_seg; in get_new_sb()
122 total_meta_segments = get_sb(segment_count_ckpt) + in get_new_sb()
123 get_sb(segment_count_sit) + in get_new_sb()
124 get_sb(segment_count_nat) + in get_new_sb()
125 get_sb(segment_count_ssa); in get_new_sb()
129 set_sb(segment_count_ssa, get_sb(segment_count_ssa) + in get_new_sb()
132 set_sb(main_blkaddr, get_sb(ssa_blkaddr) + get_sb(segment_count_ssa) * in get_new_sb()
136 set_sb(segment_count_main, get_sb(segment_count) - in get_new_sb()
137 (get_sb(segment_count_ckpt) + in get_new_sb()
138 get_sb(segment_count_sit) + in get_new_sb()
139 get_sb(segment_count_nat) + in get_new_sb()
140 get_sb(segment_count_ssa))); in get_new_sb()
142 set_sb(section_count, get_sb(segment_count_main) / in get_new_sb()
143 get_sb(segs_per_sec)); in get_new_sb()
145 set_sb(segment_count_main, get_sb(section_count) * in get_new_sb()
146 get_sb(segs_per_sec)); in get_new_sb()
152 get_sb(segs_per_sec); in get_new_sb()
154 if ((get_sb(segment_count_main) - 2) < c.new_reserved_segments || in get_new_sb()
155 get_sb(segment_count_main) * blks_per_seg > in get_new_sb()
156 get_sb(block_count)) { in get_new_sb()
160 (get_sb(segment_count_main) - 2)); in get_new_sb()
237 block_t old_sum_blkaddr = get_sb(ssa_blkaddr); in migrate_ssa()
280 block_t old_nat_blkaddr = get_sb(nat_blkaddr); in shrink_nats()
294 nat_blocks = nat_blocks << get_sb(log_blocks_per_seg); in shrink_nats()
328 block_t old_nat_blkaddr = get_sb(nat_blkaddr); in migrate_nat()
367 nat_blocks = nat_blocks << get_sb(log_blocks_per_seg); in migrate_nat()
372 get_sb(segment_count_nat), in migrate_nat()
481 get_sb(segment_count_main); in rebuild_checkpoint()
542 new_cp_blk_no = old_cp_blk_no = get_sb(cp_blkaddr); in rebuild_checkpoint()
544 old_cp_blk_no += 1 << get_sb(log_blocks_per_seg); in rebuild_checkpoint()
546 new_cp_blk_no += 1 << get_sb(log_blocks_per_seg); in rebuild_checkpoint()
559 block_t orphan_blk_no = old_cp_blk_no + 1 + get_sb(cp_payload); in rebuild_checkpoint()
612 if (get_sb(segment_count_nat) > get_newsb(segment_count_nat)) { in f2fs_resize_grow()
620 old_main_blkaddr = get_sb(main_blkaddr); in f2fs_resize_grow()
623 end_blkaddr = (get_sb(segment_count_main) << in f2fs_resize_grow()
624 get_sb(log_blocks_per_seg)) + get_sb(main_blkaddr); in f2fs_resize_grow()
631 offset_seg = offset >> get_sb(log_blocks_per_seg); in f2fs_resize_grow()
681 if (get_sb(segment_count_nat) > get_newsb(segment_count_nat)) { in f2fs_resize_shrink()
689 old_main_blkaddr = get_sb(main_blkaddr); in f2fs_resize_shrink()
692 old_end_blkaddr = (get_sb(segment_count_main) << in f2fs_resize_shrink()
693 get_sb(log_blocks_per_seg)) + get_sb(main_blkaddr); in f2fs_resize_shrink()
730 get_sb(log_blocksize)) < get_sb(block_count)) in f2fs_resize()
738 get_sb(log_blocksize)) > get_sb(block_count)) || in f2fs_resize()