/kernel/linux/linux-6.6/fs/ext4/ |
H A D | balloc.c | 119 itbl_cluster_start = EXT4_B2C(sbi, itbl_blk_start - start); in ext4_num_overhead_clusters() 120 itbl_cluster_end = EXT4_B2C(sbi, itbl_blk_end - start); in ext4_num_overhead_clusters() 138 block_cluster = EXT4_B2C(sbi, in ext4_num_overhead_clusters() 147 inode_cluster = EXT4_B2C(sbi, in ext4_num_overhead_clusters() 214 ext4_set_bit(EXT4_B2C(sbi, tmp - start), bh->b_data); in ext4_init_block_bitmap() 218 ext4_set_bit(EXT4_B2C(sbi, tmp - start), bh->b_data); in ext4_init_block_bitmap() 224 ext4_set_bit(EXT4_B2C(sbi, tmp - start), bh->b_data); in ext4_init_block_bitmap() 368 if (offset < 0 || EXT4_B2C(sbi, offset) >= max_bit || in ext4_valid_block_bitmap() 369 !ext4_test_bit(EXT4_B2C(sbi, offset), bh->b_data)) in ext4_valid_block_bitmap() 376 if (offset < 0 || EXT4_B2C(sb in ext4_valid_block_bitmap() [all...] |
H A D | extents_status.c | 1149 if (rc->partial && (rc->lclu != EXT4_B2C(sbi, i))) { in count_rsvd() 1182 rc->lclu = EXT4_B2C(sbi, i); in count_rsvd() 1257 first_lclu = EXT4_B2C(sbi, rc->first_do_lblk); in get_rsvd() 1258 last_lclu = EXT4_B2C(sbi, rc->last_do_lblk); in get_rsvd() 1952 lclu = EXT4_B2C(sbi, lblk); in __insert_pending() 2002 pr = __get_pending(inode, EXT4_B2C(sbi, lblk)); in __remove_pending() 2045 ret = (bool)(__get_pending(inode, EXT4_B2C(sbi, lblk)) != NULL); in ext4_is_pending() 2163 first_lclu = EXT4_B2C(sbi, start); in __es_delayed_clu() 2165 first_lclu = EXT4_B2C(sbi, es->es_lblk); in __es_delayed_clu() 2168 last_lclu = EXT4_B2C(sb in __es_delayed_clu() [all...] |
H A D | resize.c | 71 if (EXT4_B2C(sbi, sbi->s_sbh->b_blocknr) != in ext4_resize_begin() 479 start = EXT4_B2C(sbi, ext4_group_first_block_no(sb, group)); in set_flexbg_block_bitmap() 655 ext4_mark_bitmap_end(EXT4_B2C(sbi, group_data[i].blocks_count), in setup_new_flex_group_blocks() 699 EXT4_B2C(sbi, start), in setup_new_flex_group_blocks() 700 EXT4_B2C(sbi, in setup_new_flex_group_blocks() 713 EXT4_B2C(sbi, start), in setup_new_flex_group_blocks() 714 EXT4_B2C(sbi, in setup_new_flex_group_blocks()
|
H A D | fsmap.c | 540 EXT4_B2C(sbi, info->gfi_low.fmr_physical), in ext4_getfsmap_datadev() 541 EXT4_B2C(sbi, info->gfi_high.fmr_physical), in ext4_getfsmap_datadev()
|
H A D | extents.c | 2472 partial->pclu != EXT4_B2C(sbi, last_pblk)) { in ext4_remove_blocks() 2524 if (partial->state != initial && partial->pclu != EXT4_B2C(sbi, pblk)) in ext4_remove_blocks() 2539 partial->pclu = EXT4_B2C(sbi, pblk); in ext4_remove_blocks() 2630 partial->pclu = EXT4_B2C(sbi, pblk); in ext4_ext_rm_leaf() 2745 if (partial->pclu != EXT4_B2C(sbi, pblk)) { in ext4_ext_rm_leaf() 2865 partial.pclu = EXT4_B2C(sbi, pblk); in ext4_ext_remove_space() 2898 partial.pclu = EXT4_B2C(sbi, pblk); in ext4_ext_remove_space() 3974 * cluster EXT4_B2C(sbi, map->m_lblk). We will then return 1 to 3994 ex_cluster_start = EXT4_B2C(sbi, ee_block); in get_implied_cluster_alloc() 3995 ex_cluster_end = EXT4_B2C(sb in get_implied_cluster_alloc() [all...] |
H A D | mballoc.c | 2353 ac->ac_g_ex.fe_len == EXT4_B2C(sbi, sbi->s_stripe)) { in ext4_mb_find_by_goal() 2550 stripe = EXT4_B2C(sbi, sbi->s_stripe); in ext4_mb_scan_aligned() 2551 i = EXT4_B2C(sbi, i); in ext4_mb_scan_aligned() 2927 EXT4_B2C(sbi, sbi->s_stripe))) in ext4_mb_regular_allocator() 3694 sbi->s_mb_group_prealloc, EXT4_B2C(sbi, sbi->s_stripe)); in ext4_mb_init() 4780 EXT4_B2C(sbi, ac->ac_g_ex.fe_logical - pa->pa_lstart)) in ext4_mb_pa_goal_check() 6763 ext4_fsblk_t first_cluster = EXT4_B2C(sbi, block); in ext4_group_add_blocks() 6764 ext4_fsblk_t last_cluster = EXT4_B2C(sbi, block + count - 1); in ext4_group_add_blocks()
|
H A D | super.c | 4155 ext4_set_bit(EXT4_B2C(sbi, b - first_block), buf); in count_overhead() 4160 ext4_set_bit(EXT4_B2C(sbi, b - first_block), buf); in count_overhead() 4166 int c = EXT4_B2C(sbi, b - first_block); in count_overhead() 4185 ext4_set_bit(EXT4_B2C(sbi, s++), buf); in count_overhead() 4218 overhead = EXT4_B2C(sbi, le32_to_cpu(es->s_first_data_block)); in ext4_calculate_overhead()
|
H A D | ext4.h | 367 #define EXT4_B2C(sbi, blk) ((blk) >> (sbi)->s_cluster_bits) macro
|
H A D | inode.c | 1660 EXT4_B2C(sbi, lblk)); in ext4_insert_delayed_block()
|
/kernel/linux/linux-5.10/fs/ext4/ |
H A D | balloc.c | 114 block_cluster = EXT4_B2C(sbi, in ext4_num_overhead_clusters() 125 inode_cluster = EXT4_B2C(sbi, in ext4_num_overhead_clusters() 138 c = EXT4_B2C(sbi, itbl_blk + i - start); in ext4_num_overhead_clusters() 212 ext4_set_bit(EXT4_B2C(sbi, tmp - start), bh->b_data); in ext4_init_block_bitmap() 216 ext4_set_bit(EXT4_B2C(sbi, tmp - start), bh->b_data); in ext4_init_block_bitmap() 222 ext4_set_bit(EXT4_B2C(sbi, tmp - start), bh->b_data); in ext4_init_block_bitmap() 366 if (offset < 0 || EXT4_B2C(sbi, offset) >= max_bit || in ext4_valid_block_bitmap() 367 !ext4_test_bit(EXT4_B2C(sbi, offset), bh->b_data)) in ext4_valid_block_bitmap() 374 if (offset < 0 || EXT4_B2C(sbi, offset) >= max_bit || in ext4_valid_block_bitmap() 375 !ext4_test_bit(EXT4_B2C(sb in ext4_valid_block_bitmap() [all...] |
H A D | extents_status.c | 1156 if (rc->partial && (rc->lclu != EXT4_B2C(sbi, i))) { in count_rsvd() 1189 rc->lclu = EXT4_B2C(sbi, i); in count_rsvd() 1264 first_lclu = EXT4_B2C(sbi, rc->first_do_lblk); in get_rsvd() 1265 last_lclu = EXT4_B2C(sbi, rc->last_do_lblk); in get_rsvd() 1960 lclu = EXT4_B2C(sbi, lblk); in __insert_pending() 2010 pr = __get_pending(inode, EXT4_B2C(sbi, lblk)); in __remove_pending() 2053 ret = (bool)(__get_pending(inode, EXT4_B2C(sbi, lblk)) != NULL); in ext4_is_pending() 2173 first_lclu = EXT4_B2C(sbi, start); in __es_delayed_clu() 2175 first_lclu = EXT4_B2C(sbi, es->es_lblk); in __es_delayed_clu() 2178 last_lclu = EXT4_B2C(sb in __es_delayed_clu() [all...] |
H A D | resize.c | 70 if (EXT4_B2C(sbi, sbi->s_sbh->b_blocknr) != in ext4_resize_begin() 477 start = EXT4_B2C(sbi, ext4_group_first_block_no(sb, group)); in set_flexbg_block_bitmap() 651 ext4_mark_bitmap_end(EXT4_B2C(sbi, group_data[i].blocks_count), in setup_new_flex_group_blocks() 695 EXT4_B2C(sbi, start), in setup_new_flex_group_blocks() 696 EXT4_B2C(sbi, in setup_new_flex_group_blocks() 709 EXT4_B2C(sbi, start), in setup_new_flex_group_blocks() 710 EXT4_B2C(sbi, in setup_new_flex_group_blocks()
|
H A D | fsmap.c | 540 EXT4_B2C(sbi, info->gfi_low.fmr_physical), in ext4_getfsmap_datadev() 541 EXT4_B2C(sbi, info->gfi_high.fmr_physical), in ext4_getfsmap_datadev()
|
H A D | extents.c | 2500 partial->pclu != EXT4_B2C(sbi, last_pblk)) { in ext4_remove_blocks() 2552 if (partial->state != initial && partial->pclu != EXT4_B2C(sbi, pblk)) in ext4_remove_blocks() 2567 partial->pclu = EXT4_B2C(sbi, pblk); in ext4_remove_blocks() 2659 partial->pclu = EXT4_B2C(sbi, pblk); in ext4_ext_rm_leaf() 2774 if (partial->pclu != EXT4_B2C(sbi, pblk)) { in ext4_ext_rm_leaf() 2894 partial.pclu = EXT4_B2C(sbi, pblk); in ext4_ext_remove_space() 2927 partial.pclu = EXT4_B2C(sbi, pblk); in ext4_ext_remove_space() 4006 * cluster EXT4_B2C(sbi, map->m_lblk). We will then return 1 to 4026 ex_cluster_start = EXT4_B2C(sbi, ee_block); in get_implied_cluster_alloc() 4027 ex_cluster_end = EXT4_B2C(sb in get_implied_cluster_alloc() [all...] |
H A D | super.c | 3868 ext4_set_bit(EXT4_B2C(sbi, b - first_block), buf); in count_overhead() 3873 ext4_set_bit(EXT4_B2C(sbi, b - first_block), buf); in count_overhead() 3879 int c = EXT4_B2C(sbi, b - first_block); in count_overhead() 3898 ext4_set_bit(EXT4_B2C(sbi, s++), buf); in count_overhead() 3931 overhead = EXT4_B2C(sbi, le32_to_cpu(es->s_first_data_block)); in ext4_calculate_overhead()
|
H A D | mballoc.c | 5764 ext4_fsblk_t first_cluster = EXT4_B2C(sbi, block); in ext4_group_add_blocks() 5765 ext4_fsblk_t last_cluster = EXT4_B2C(sbi, block + count - 1); in ext4_group_add_blocks()
|
H A D | ext4.h | 300 #define EXT4_B2C(sbi, blk) ((blk) >> (sbi)->s_cluster_bits) macro
|
H A D | inode.c | 1665 EXT4_B2C(sbi, lblk)); in ext4_insert_delayed_block()
|