Home
last modified time | relevance | path

Searched refs:EXT4_B2C (Results 1 – 9 of 9) sorted by relevance

/linux-6.15/fs/ext4/
H A Dballoc.c119 itbl_cluster_end = EXT4_B2C(sbi, itbl_blk_end - start); in ext4_num_overhead_clusters()
137 block_cluster = EXT4_B2C(sbi, in ext4_num_overhead_clusters()
146 inode_cluster = EXT4_B2C(sbi, in ext4_num_overhead_clusters()
213 ext4_set_bit(EXT4_B2C(sbi, tmp - start), bh->b_data); in ext4_init_block_bitmap()
217 ext4_set_bit(EXT4_B2C(sbi, tmp - start), bh->b_data); in ext4_init_block_bitmap()
223 ext4_set_bit(EXT4_B2C(sbi, tmp - start), bh->b_data); in ext4_init_block_bitmap()
370 if (offset < 0 || EXT4_B2C(sbi, offset) >= max_bit || in ext4_valid_block_bitmap()
371 !ext4_test_bit(EXT4_B2C(sbi, offset), bh->b_data)) in ext4_valid_block_bitmap()
378 if (offset < 0 || EXT4_B2C(sbi, offset) >= max_bit || in ext4_valid_block_bitmap()
386 if (offset < 0 || EXT4_B2C(sbi, offset) >= max_bit || in ext4_valid_block_bitmap()
[all …]
H A Dextents_status.c1166 if (rc->partial && (rc->lclu != EXT4_B2C(sbi, i))) { in count_rsvd()
1199 rc->lclu = EXT4_B2C(sbi, i); in count_rsvd()
1273 first_lclu = EXT4_B2C(sbi, rc->first_do_lblk); in get_rsvd()
1274 last_lclu = EXT4_B2C(sbi, rc->last_do_lblk); in get_rsvd()
1970 lclu = EXT4_B2C(sbi, lblk); in __insert_pending()
2021 pr = __get_pending(inode, EXT4_B2C(sbi, lblk)); in __remove_pending()
2064 ret = (bool)(__get_pending(inode, EXT4_B2C(sbi, lblk)) != NULL); in ext4_is_pending()
2106 WARN_ON_ONCE((EXT4_B2C(sbi, lblk) == EXT4_B2C(sbi, end)) && in ext4_es_insert_delayed_extent()
2223 if (EXT4_B2C(sbi, lblk) == EXT4_B2C(sbi, end)) { in __revise_pending()
H A Dresize.c69 if (EXT4_B2C(sbi, sbi->s_sbh->b_blocknr) != in ext4_resize_begin()
145 input->free_clusters_count = EXT4_B2C(sbi, free_blocks_count); in verify_group_input()
477 start = EXT4_B2C(sbi, ext4_group_first_block_no(sb, group)); in set_flexbg_block_bitmap()
653 ext4_mark_bitmap_end(EXT4_B2C(sbi, group_data[i].blocks_count), in setup_new_flex_group_blocks()
697 EXT4_B2C(sbi, start), in setup_new_flex_group_blocks()
698 EXT4_B2C(sbi, in setup_new_flex_group_blocks()
710 EXT4_B2C(sbi, start), in setup_new_flex_group_blocks()
711 EXT4_B2C(sbi, in setup_new_flex_group_blocks()
H A Dfsmap.c590 EXT4_B2C(sbi, info->gfi_low.fmr_physical), in ext4_getfsmap_datadev()
591 EXT4_B2C(sbi, info->gfi_high.fmr_physical), in ext4_getfsmap_datadev()
H A Dextents.c2498 partial->pclu != EXT4_B2C(sbi, last_pblk)) { in ext4_remove_blocks()
2565 partial->pclu = EXT4_B2C(sbi, pblk); in ext4_remove_blocks()
2656 partial->pclu = EXT4_B2C(sbi, pblk); in ext4_ext_rm_leaf()
2771 if (partial->pclu != EXT4_B2C(sbi, pblk)) { in ext4_ext_rm_leaf()
2891 partial.pclu = EXT4_B2C(sbi, pblk); in ext4_ext_remove_space()
2925 partial.pclu = EXT4_B2C(sbi, pblk); in ext4_ext_remove_space()
4055 ex_cluster_start = EXT4_B2C(sbi, ee_block); in get_implied_cluster_alloc()
4059 rr_cluster_start = EXT4_B2C(sbi, map->m_lblk); in get_implied_cluster_alloc()
5744 first_lclu = EXT4_B2C(sbi, first_lblk); in ext4_clu_mapped()
5753 last_lclu = EXT4_B2C(sbi, first_lblk + in ext4_clu_mapped()
[all …]
H A Dinode.c1666 ret = ext4_clu_mapped(inode, EXT4_B2C(sbi, lblk)); in ext4_clu_alloc_state()
1713 resv_clu = EXT4_B2C(sbi, end) - EXT4_B2C(sbi, lblk) + 1; in ext4_insert_delayed_blocks()
1723 if (EXT4_B2C(sbi, lblk) != EXT4_B2C(sbi, end)) { in ext4_insert_delayed_blocks()
H A Dsuper.c4134 ext4_set_bit(EXT4_B2C(sbi, b - first_block), buf); in count_overhead()
4139 ext4_set_bit(EXT4_B2C(sbi, b - first_block), buf); in count_overhead()
4145 int c = EXT4_B2C(sbi, b - first_block); in count_overhead()
4164 ext4_set_bit(EXT4_B2C(sbi, s++), buf); in count_overhead()
4197 overhead = EXT4_B2C(sbi, le32_to_cpu(es->s_first_data_block)); in ext4_calculate_overhead()
H A Dmballoc.c2557 i = EXT4_B2C(sbi, i); in ext4_mb_scan_aligned()
4771 EXT4_B2C(sbi, ac->ac_g_ex.fe_logical - pa->pa_lstart)) in ext4_mb_pa_goal_check()
6671 ext4_fsblk_t first_cluster = EXT4_B2C(sbi, block); in ext4_group_add_blocks()
6672 ext4_fsblk_t last_cluster = EXT4_B2C(sbi, block + count - 1); in ext4_group_add_blocks()
H A Dext4.h377 #define EXT4_B2C(sbi, blk) ((blk) >> (sbi)->s_cluster_bits) macro