Home
last modified time | relevance | path

Searched refs:log_blocks_per_seg (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/fs/f2fs/
H A Dgc.h99 return free_segments(sbi) << sbi->log_blocks_per_seg; in free_segs_blk_count()
107 ovp_blks = overprovision_segments(sbi) << sbi->log_blocks_per_seg; in free_user_blocks()
H A Dsuper.c3349 u32 log_blocks_per_seg = le32_to_cpu(raw_super->log_blocks_per_seg); in sanity_check_area_boundary() local
3351 ((u64)segment_count_main << log_blocks_per_seg); in sanity_check_area_boundary()
3353 ((u64)segment_count << log_blocks_per_seg); in sanity_check_area_boundary()
3361 if (cp_blkaddr + (segment_count_ckpt << log_blocks_per_seg) != in sanity_check_area_boundary()
3365 segment_count_ckpt << log_blocks_per_seg); in sanity_check_area_boundary()
3369 if (sit_blkaddr + (segment_count_sit << log_blocks_per_seg) != in sanity_check_area_boundary()
3373 segment_count_sit << log_blocks_per_seg); in sanity_check_area_boundary()
3377 if (nat_blkaddr + (segment_count_nat << log_blocks_per_seg) != in sanity_check_area_boundary()
3381 segment_count_nat << log_blocks_per_seg); in sanity_check_area_boundary()
3601 unsigned int log_blocks_per_seg; f2fs_sanity_check_ckpt() local
[all...]
H A Dsegment.h80 #define TOTAL_BLKS(sbi) (TOTAL_SEGS(sbi) << (sbi)->log_blocks_per_seg)
84 (sbi)->log_blocks_per_seg))
87 (GET_R2L_SEGNO(FREE_I(sbi), segno) << (sbi)->log_blocks_per_seg))
94 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) >> (sbi)->log_blocks_per_seg)
107 (sbi)->log_blocks_per_seg))
H A Ddebug.c179 si->util_free = (int)(free_user_blocks(sbi) >> sbi->log_blocks_per_seg) in update_general_status()
180 * 100 / (int)(sbi->user_block_count >> sbi->log_blocks_per_seg) in update_general_status()
183 sbi->log_blocks_per_seg) in update_general_status()
184 * 100 / (int)(sbi->user_block_count >> sbi->log_blocks_per_seg) in update_general_status()
H A Dnode.h225 block_addr ^= BIT(sbi->log_blocks_per_seg); in next_nat_addr()
H A Dgc.c353 u = (vblocks * 100) >> sbi->log_blocks_per_seg; in get_cb_cost()
2093 (long long)(segs << sbi->log_blocks_per_seg)); in update_sb_metadata()
2109 long long blks = (long long)segs << sbi->log_blocks_per_seg; in update_fs_metadata()
2151 if (block_count + (last_segs << sbi->log_blocks_per_seg) <= in f2fs_resize_fs()
H A Dcheckpoint.c943 le32_to_cpu(fsb->log_blocks_per_seg); in f2fs_get_valid_checkpoint()
979 cp_blk_no += BIT(le32_to_cpu(fsb->log_blocks_per_seg)); in f2fs_get_valid_checkpoint()
H A Dsegment.c462 sbi->log_blocks_per_seg; in excess_dirty_threshold()
885 block_t ovp_holes = ovp_hole_segs << sbi->log_blocks_per_seg; in f2fs_get_unusable_blocks()
2200 (end - start) << sbi->log_blocks_per_seg); in f2fs_clear_prefree_segments()
2310 dcc->max_discards = MAIN_SEGS(sbi) << sbi->log_blocks_per_seg; in create_discard_cmd_control()
4500 sit_i->sit_blocks = sit_segs << sbi->log_blocks_per_seg; in build_sit_info()
H A Dsysfs.c476 sbi->log_blocks_per_seg))) { in __sbi_store()
H A Df2fs.h1619 unsigned int log_blocks_per_seg; /* log2 blocks per segment */ member
1820 ((sbi)->segs_per_sec << (sbi)->log_blocks_per_seg)
H A Dnode.c3256 nm_i->nat_blocks = nat_segs << le32_to_cpu(sb_raw->log_blocks_per_seg); in init_node_manager()
/openbmc/linux/include/linux/
H A Df2fs_fs.h116 __le32 log_blocks_per_seg; /* log2 # of blocks per segment */ member