Searched refs:blocks_per_seg (Results 1 – 12 of 12) sorted by relevance
/fs/f2fs/ |
D | segment.h | 96 (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 - \ 762 if (usable_blks_per_seg < sbi->blocks_per_seg) in check_block_count() 764 sbi->blocks_per_seg, in check_block_count() 765 usable_blks_per_seg) != sbi->blocks_per_seg); in check_block_count() 883 return sbi->blocks_per_seg; in nr_pages_to_skip() 885 return 8 * sbi->blocks_per_seg; in nr_pages_to_skip()
|
D | segment.c | 439 unsigned int threshold = sbi->blocks_per_seg * factor * in excess_dirty_threshold() 1028 unsigned long offset, size, max_blocks = sbi->blocks_per_seg; in __check_sit_bitmap() 1841 int max_blocks = sbi->blocks_per_seg; in add_discard_addrs() 2007 sbi->blocks_per_seg, cur_pos); in f2fs_clear_prefree_segments() 2019 sbi->blocks_per_seg, cur_pos); in f2fs_clear_prefree_segments() 2025 if (cur_pos < sbi->blocks_per_seg) in f2fs_clear_prefree_segments() 2071 dcc->discard_granularity = sbi->blocks_per_seg; in create_discard_cmd_control() 2353 valid_sum_count += sbi->blocks_per_seg; in f2fs_npages_for_summary_flush() 2628 return __find_rev_next_zero_bit(target_map, sbi->blocks_per_seg, start); in __next_free_blkoff() 2659 return __next_free_blkoff(sbi, segno, 0) < sbi->blocks_per_seg; in f2fs_segment_has_free_slot() [all …]
|
D | super.c | 336 unsigned int sec_blks = sbi->blocks_per_seg * sbi->segs_per_sec; in adjust_reserved_segment() 358 if (wanted_reserved_segments * sbi->blocks_per_seg > in adjust_reserved_segment() 3297 block_t total_sections, blocks_per_seg; in sanity_check_raw_super() local 3365 blocks_per_seg = 1 << le32_to_cpu(raw_super->log_blocks_per_seg); in sanity_check_raw_super() 3436 (blocks_per_seg - F2FS_CP_PACKS - in sanity_check_raw_super() 3440 blocks_per_seg - F2FS_CP_PACKS - in sanity_check_raw_super() 3469 unsigned int main_segs, blocks_per_seg; in f2fs_sanity_check_ckpt() local 3528 blocks_per_seg = sbi->blocks_per_seg; in f2fs_sanity_check_ckpt() 3532 le16_to_cpu(ckpt->cur_node_blkoff[i]) >= blocks_per_seg) in f2fs_sanity_check_ckpt() 3551 le16_to_cpu(ckpt->cur_data_blkoff[i]) >= blocks_per_seg) in f2fs_sanity_check_ckpt() [all …]
|
D | node.h | 213 (block_off & (sbi->blocks_per_seg - 1))); in current_nat_addr() 216 block_addr += sbi->blocks_per_seg; in current_nat_addr()
|
D | gc.c | 286 return sbi->blocks_per_seg; in get_max_cost() 292 return 2 * sbi->blocks_per_seg * p->ofs_unit; in get_max_cost() 552 unsigned int seg_blocks = sbi->blocks_per_seg; in atssr_lookup_victim() 2009 (long long)segs * sbi->blocks_per_seg); in update_sb_metadata() 2025 long long blks = (long long)segs * sbi->blocks_per_seg; in update_fs_metadata() 2067 if (block_count + last_segs * sbi->blocks_per_seg <= in f2fs_resize_fs()
|
D | checkpoint.c | 901 if (cp_blocks > sbi->blocks_per_seg || cp_blocks <= F2FS_CP_PACKS) { in validate_checkpoint() 1336 NM_I(sbi)->nat_bits_blocks > sbi->blocks_per_seg) { in update_ckpt_flags() 1541 blk = start_blk + sbi->blocks_per_seg - nm_i->nat_bits_blocks; in do_checkpoint() 1744 sbi->max_orphans = (sbi->blocks_per_seg - F2FS_CP_PACKS - in f2fs_init_ino_entry_info()
|
D | recovery.c | 356 else if (next_blkaddr % sbi->blocks_per_seg) in adjust_por_ra_blocks() 370 unsigned int free_blocks = MAIN_SEGS(sbi) * sbi->blocks_per_seg - in find_fsync_dnodes()
|
D | debug.c | 127 si->total_count = (int)sbi->user_block_count / sbi->blocks_per_seg; in update_general_status() 199 if (blks == sbi->blocks_per_seg) in update_general_status()
|
D | f2fs.h | 1680 unsigned int blocks_per_seg; /* blocks per segment */ member 2326 avail_user_block_count -= sbi->blocks_per_seg * in inc_valid_block_count() 2475 unsigned int pages_per_sec = sbi->segs_per_sec * sbi->blocks_per_seg; in get_blocktype_secs() 2543 start_addr += sbi->blocks_per_seg; in __start_cp_addr() 2552 start_addr += sbi->blocks_per_seg; in __start_cp_next_addr() 2599 valid_block_count += sbi->blocks_per_seg * in inc_valid_node_count()
|
D | file.c | 2521 unsigned int blk_per_seg = sbi->blocks_per_seg; in f2fs_defragment_range() 3956 unsigned int blk_per_seg = sbi->blocks_per_seg; in f2fs_ioc_decompress_file() 4028 unsigned int blk_per_seg = sbi->blocks_per_seg; in f2fs_ioc_compress_file()
|
D | sysfs.c | 458 sbi->blocks_per_seg * in __sbi_store()
|
D | node.c | 2826 last_offset = sbi->blocks_per_seg; in f2fs_restore_node_summary() 3143 nat_bits_addr = __start_cp_addr(sbi) + sbi->blocks_per_seg - in __get_nat_bitmaps()
|