Searched refs:BLKS_PER_SEG (Results 1 – 11 of 11) sorted by relevance
96 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & (BLKS_PER_SEG(sbi) - 1))103 (SEGS_PER_SEC(sbi) * BLKS_PER_SEG(sbi) - \783 if (usable_blks_per_seg < BLKS_PER_SEG(sbi)) in check_block_count()785 BLKS_PER_SEG(sbi), in check_block_count()786 usable_blks_per_seg) != BLKS_PER_SEG(sbi)); in check_block_count()905 return BLKS_PER_SEG(sbi); in nr_pages_to_skip()907 return 8 * BLKS_PER_SEG(sbi); in nr_pages_to_skip()
1146 size = BLKS_PER_SEG(sbi); in __check_sit_bitmap()2075 if (start >= BLKS_PER_SEG(sbi)) in add_discard_addrs()2079 BLKS_PER_SEG(sbi), start + 1); in add_discard_addrs()2213 BLKS_PER_SEG(sbi), cur_pos); in f2fs_clear_prefree_segments()2225 BLKS_PER_SEG(sbi), cur_pos); in f2fs_clear_prefree_segments()2231 if (cur_pos < BLKS_PER_SEG(sbi)) in f2fs_clear_prefree_segments()2542 return BLKS_PER_SEG(sbi); in f2fs_curseg_valid_blocks()3895 blk_off = BLKS_PER_SEG(sbi); in read_compacted_summaries()5147 return BLKS_PER_SEG(sbi); in f2fs_usable_zone_blks_in_seg()5165 return BLKS_PER_SEG(sbi); in f2fs_usable_zone_blks_in_seg()[all …]
211 (block_off & (BLKS_PER_SEG(sbi) - 1))); in current_nat_addr()214 block_addr += BLKS_PER_SEG(sbi); in current_nat_addr()
892 if (cp_blocks > BLKS_PER_SEG(sbi) || cp_blocks <= F2FS_CP_PACKS) { in validate_checkpoint()1327 NM_I(sbi)->nat_bits_blocks > BLKS_PER_SEG(sbi)) { in update_ckpt_flags()1530 blk = start_blk + BLKS_PER_SEG(sbi) - nm_i->nat_bits_blocks; in do_checkpoint()1734 sbi->max_orphans = (BLKS_PER_SEG(sbi) - F2FS_CP_PACKS - in f2fs_init_ino_entry_info()
138 si->total_count = (int)sbi->user_block_count / BLKS_PER_SEG(sbi); in update_general_status()211 if (blks == BLKS_PER_SEG(sbi)) in update_general_status()
298 return BLKS_PER_SEG(sbi); in get_max_cost()304 return 2 * BLKS_PER_SEG(sbi) * p->ofs_unit; in get_max_cost()631 if (vblocks == BLKS_PER_SEG(sbi)) in atssr_lookup_victim()
357 else if (next_blkaddr % BLKS_PER_SEG(sbi)) in adjust_por_ra_blocks()
2695 cnt < BLKS_PER_SEG(sbi)) { in f2fs_defragment_range()2715 if (map.m_lblk < pg_end && cnt < BLKS_PER_SEG(sbi)) in f2fs_defragment_range()4154 if (get_dirty_pages(inode) >= BLKS_PER_SEG(sbi)) { in f2fs_ioc_decompress_file()4229 if (get_dirty_pages(inode) >= BLKS_PER_SEG(sbi)) { in f2fs_ioc_compress_file()
1808 #define BLKS_PER_SEG(sbi) \ macro2590 start_addr += BLKS_PER_SEG(sbi); in __start_cp_addr()2599 start_addr += BLKS_PER_SEG(sbi); in __start_cp_next_addr()
2852 last_offset = BLKS_PER_SEG(sbi); in f2fs_restore_node_summary()3169 nat_bits_addr = __start_cp_addr(sbi) + BLKS_PER_SEG(sbi) - in __get_nat_bitmaps()
3626 blocks_per_seg = BLKS_PER_SEG(sbi); in f2fs_sanity_check_ckpt()