Home
last modified time | relevance | path

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

/linux-6.1.9/fs/f2fs/
Dsegment.h96 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & ((sbi)->blocks_per_seg - 1))
103 ((sbi)->segs_per_sec * (sbi)->blocks_per_seg)
105 ((sbi)->segs_per_sec * (sbi)->blocks_per_seg - \
760 if (usable_blks_per_seg < sbi->blocks_per_seg) in check_block_count()
762 sbi->blocks_per_seg, in check_block_count()
763 usable_blks_per_seg) != sbi->blocks_per_seg); in check_block_count()
882 return sbi->blocks_per_seg; in nr_pages_to_skip()
884 return 8 * sbi->blocks_per_seg; in nr_pages_to_skip()
Dsegment.c423 unsigned int threshold = sbi->blocks_per_seg * factor * in excess_dirty_threshold()
1012 unsigned long offset, size, max_blocks = sbi->blocks_per_seg; in __check_sit_bitmap()
1822 int max_blocks = sbi->blocks_per_seg; in add_discard_addrs()
1988 sbi->blocks_per_seg, cur_pos); in f2fs_clear_prefree_segments()
2000 sbi->blocks_per_seg, cur_pos); in f2fs_clear_prefree_segments()
2006 if (cur_pos < sbi->blocks_per_seg) in f2fs_clear_prefree_segments()
2052 dcc->discard_granularity = sbi->blocks_per_seg; in create_discard_cmd_control()
2334 valid_sum_count += sbi->blocks_per_seg; in f2fs_npages_for_summary_flush()
2609 return __find_rev_next_zero_bit(target_map, sbi->blocks_per_seg, start); in __next_free_blkoff()
2640 return __next_free_blkoff(sbi, segno, 0) < sbi->blocks_per_seg; in f2fs_segment_has_free_slot()
[all …]
Dnode.h213 (block_off & (sbi->blocks_per_seg - 1))); in current_nat_addr()
216 block_addr += sbi->blocks_per_seg; in current_nat_addr()
Dsuper.c328 unsigned int sec_blks = sbi->blocks_per_seg * sbi->segs_per_sec; in adjust_reserved_segment()
350 if (wanted_reserved_segments * sbi->blocks_per_seg > in adjust_reserved_segment()
3261 block_t total_sections, blocks_per_seg; in sanity_check_raw_super() local
3329 blocks_per_seg = 1 << le32_to_cpu(raw_super->log_blocks_per_seg); in sanity_check_raw_super()
3400 (blocks_per_seg - F2FS_CP_PACKS - in sanity_check_raw_super()
3404 blocks_per_seg - F2FS_CP_PACKS - in sanity_check_raw_super()
3433 unsigned int main_segs, blocks_per_seg; in f2fs_sanity_check_ckpt() local
3492 blocks_per_seg = sbi->blocks_per_seg; in f2fs_sanity_check_ckpt()
3496 le16_to_cpu(ckpt->cur_node_blkoff[i]) >= blocks_per_seg) in f2fs_sanity_check_ckpt()
3515 le16_to_cpu(ckpt->cur_data_blkoff[i]) >= blocks_per_seg) in f2fs_sanity_check_ckpt()
[all …]
Dgc.c297 return sbi->blocks_per_seg; in get_max_cost()
303 return 2 * sbi->blocks_per_seg * p->ofs_unit; in get_max_cost()
563 unsigned int seg_blocks = sbi->blocks_per_seg; in atssr_lookup_victim()
2029 (long long)segs * sbi->blocks_per_seg); in update_sb_metadata()
2045 long long blks = (long long)segs * sbi->blocks_per_seg; in update_fs_metadata()
2086 if (block_count + last_segs * sbi->blocks_per_seg <= in f2fs_resize_fs()
Drecovery.c357 else if (next_blkaddr % sbi->blocks_per_seg) in adjust_por_ra_blocks()
371 unsigned int free_blocks = MAIN_SEGS(sbi) * sbi->blocks_per_seg - in find_fsync_dnodes()
Dcheckpoint.c893 if (cp_blocks > sbi->blocks_per_seg || cp_blocks <= F2FS_CP_PACKS) { in validate_checkpoint()
1327 NM_I(sbi)->nat_bits_blocks > sbi->blocks_per_seg) { in update_ckpt_flags()
1532 blk = start_blk + sbi->blocks_per_seg - nm_i->nat_bits_blocks; in do_checkpoint()
1735 sbi->max_orphans = (sbi->blocks_per_seg - F2FS_CP_PACKS - in f2fs_init_ino_entry_info()
Ddebug.c127 si->total_count = (int)sbi->user_block_count / sbi->blocks_per_seg; in update_general_status()
200 if (blks == sbi->blocks_per_seg) in update_general_status()
Df2fs.h1688 unsigned int blocks_per_seg; /* blocks per segment */ member
2339 avail_user_block_count -= sbi->blocks_per_seg * in inc_valid_block_count()
2488 unsigned int pages_per_sec = sbi->segs_per_sec * sbi->blocks_per_seg; in get_blocktype_secs()
2556 start_addr += sbi->blocks_per_seg; in __start_cp_addr()
2565 start_addr += sbi->blocks_per_seg; in __start_cp_next_addr()
2612 valid_block_count += sbi->blocks_per_seg * in inc_valid_node_count()
Dsysfs.c463 sbi->blocks_per_seg * in __sbi_store()
Dfile.c2552 unsigned int blk_per_seg = sbi->blocks_per_seg; in f2fs_defragment_range()
3992 unsigned int blk_per_seg = sbi->blocks_per_seg; in f2fs_ioc_decompress_file()
4064 unsigned int blk_per_seg = sbi->blocks_per_seg; in f2fs_ioc_compress_file()
Dnode.c2824 last_offset = sbi->blocks_per_seg; in f2fs_restore_node_summary()
3141 nat_bits_addr = __start_cp_addr(sbi) + sbi->blocks_per_seg - in __get_nat_bitmaps()