Searched refs:blocks_per_seg (Results 1 – 11 of 11) sorted by relevance
/linux-4.19.296/fs/f2fs/ |
D | segment.h | 85 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & ((sbi)->blocks_per_seg - 1)) 92 ((sbi)->segs_per_sec * (sbi)->blocks_per_seg) 547 left_blocks = sbi->blocks_per_seg - in has_curseg_enough_space() 556 left_blocks = sbi->blocks_per_seg - in has_curseg_enough_space() 679 sbi->blocks_per_seg, in check_block_count() 684 sbi->blocks_per_seg, in check_block_count() 688 } while (cur_pos < sbi->blocks_per_seg); in check_block_count() 699 if (unlikely(GET_SIT_VBLOCKS(raw_sit) > sbi->blocks_per_seg in check_block_count() 815 return sbi->blocks_per_seg; in nr_pages_to_skip() 817 return 8 * sbi->blocks_per_seg; in nr_pages_to_skip()
|
D | node.h | 140 return get_pages(sbi, F2FS_DIRTY_NODES) >= sbi->blocks_per_seg * 8; in excess_dirty_nodes() 211 (block_off & (sbi->blocks_per_seg - 1))); in current_nat_addr() 214 block_addr += sbi->blocks_per_seg; in current_nat_addr()
|
D | segment.c | 841 } else if (valid_blocks < sbi->blocks_per_seg) { in locate_dirty_segment() 965 unsigned long offset, size, max_blocks = sbi->blocks_per_seg; in __check_sit_bitmap() 1743 int max_blocks = sbi->blocks_per_seg; in add_discard_addrs() 1901 sbi->blocks_per_seg, cur_pos); in f2fs_clear_prefree_segments() 1913 sbi->blocks_per_seg, cur_pos); in f2fs_clear_prefree_segments() 1919 if (cur_pos < sbi->blocks_per_seg) in f2fs_clear_prefree_segments() 2027 (new_vblocks > sbi->blocks_per_seg))); in update_sit_entry() 2166 valid_sum_count += sbi->blocks_per_seg; in f2fs_npages_for_summary_flush() 2415 pos = __find_rev_next_zero_bit(target_map, sbi->blocks_per_seg, start); in __next_free_blkoff() 2720 if (curseg->next_blkoff < sbi->blocks_per_seg) in __has_curseg_space() [all …]
|
D | super.c | 2205 block_t total_sections, blocks_per_seg; in sanity_check_raw_super() local 2268 blocks_per_seg = 1 << le32_to_cpu(raw_super->log_blocks_per_seg); in sanity_check_raw_super() 2320 (blocks_per_seg - F2FS_CP_PACKS)) { in sanity_check_raw_super() 2324 blocks_per_seg - F2FS_CP_PACKS); in sanity_check_raw_super() 2353 unsigned int main_segs, blocks_per_seg; in f2fs_sanity_check_ckpt() local 2395 blocks_per_seg = sbi->blocks_per_seg; in f2fs_sanity_check_ckpt() 2399 le16_to_cpu(ckpt->cur_node_blkoff[i]) >= blocks_per_seg) in f2fs_sanity_check_ckpt() 2414 le16_to_cpu(ckpt->cur_data_blkoff[i]) >= blocks_per_seg) in f2fs_sanity_check_ckpt() 2454 cp_pack_start_sum > blocks_per_seg - 1 - in f2fs_sanity_check_ckpt() 2479 sbi->blocks_per_seg = 1 << sbi->log_blocks_per_seg; in init_sb_info() [all …]
|
D | gc.c | 209 return sbi->blocks_per_seg; in get_max_cost() 211 return 2 * sbi->blocks_per_seg * p->ofs_unit; in get_max_cost() 483 for (off = 0; off < sbi->blocks_per_seg; off++, entry++) { in gc_node_segment() 922 for (off = 0; off < sbi->blocks_per_seg; off++, entry++) { in gc_data_segment()
|
D | checkpoint.c | 824 sbi->blocks_per_seg) { in validate_checkpoint() 1214 sbi->blocks_per_seg - NM_I(sbi)->nat_bits_blocks) in update_ckpt_flags() 1373 blk = start_blk + sbi->blocks_per_seg - nm_i->nat_bits_blocks; in do_checkpoint() 1560 sbi->max_orphans = (sbi->blocks_per_seg - F2FS_CP_PACKS - in f2fs_init_ino_entry_info()
|
D | recovery.c | 269 unsigned int free_blocks = MAIN_SEGS(sbi) * sbi->blocks_per_seg - in find_fsync_dnodes()
|
D | f2fs.h | 1206 unsigned int blocks_per_seg; /* blocks per segment */ member 1826 unsigned int pages_per_sec = sbi->segs_per_sec * sbi->blocks_per_seg; in get_blocktype_secs() 1889 start_addr += sbi->blocks_per_seg; in __start_cp_addr() 1898 start_addr += sbi->blocks_per_seg; in __start_cp_next_addr()
|
D | debug.c | 78 si->total_count = (int)sbi->user_block_count / sbi->blocks_per_seg; in update_general_status()
|
D | node.c | 2620 last_offset = sbi->blocks_per_seg; in f2fs_restore_node_summary() 2884 nat_bits_addr = __start_cp_addr(sbi) + sbi->blocks_per_seg - in __get_nat_bitmaps()
|
D | file.c | 2188 unsigned int blk_per_seg = sbi->blocks_per_seg; in f2fs_defragment_range()
|