Searched refs:s_cluster_ratio (Results 1 - 16 of 16) sorted by relevance
/kernel/linux/linux-5.10/fs/ext4/ |
H A D | ext4_jbd2.h | 294 return blocks * EXT4_SB(sb)->s_cluster_ratio; in ext4_free_metadata_revoke_credits() 485 return blocks + 2*(EXT4_SB(inode->i_sb)->s_cluster_ratio - 1); in ext4_free_data_revoke_credits()
|
H A D | extents_status.c | 402 lblk_end = lblk_start + sbi->s_cluster_ratio - 1; in __es_scan_clu() 893 revise_pending = sbi->s_cluster_ratio > 1 && in ext4_es_insert_extent() 1093 if (sbi->s_cluster_ratio > 1) { in init_rsvd() 1132 if (sbi->s_cluster_ratio == 1) { in count_rsvd() 1177 if ((i + sbi->s_cluster_ratio - 1) <= end) { in count_rsvd() 1256 if (sbi->s_cluster_ratio > 1) { in get_rsvd() 2282 sbi->s_cluster_ratio - 1; in __revise_pending() 2306 last = EXT4_LBLK_CMASK(sbi, end) + sbi->s_cluster_ratio - 1; in __revise_pending()
|
H A D | extents.c | 2507 sbi->s_cluster_ratio, flags); in ext4_remove_blocks() 2526 if ((EXT4_LBLK_COFF(sbi, to) != sbi->s_cluster_ratio - 1) && in ext4_remove_blocks() 2533 sbi->s_cluster_ratio, flags); in ext4_remove_blocks() 2657 if (sbi->s_cluster_ratio > 1) { in ext4_ext_rm_leaf() 2781 sbi->s_cluster_ratio, flags); in ext4_ext_rm_leaf() 2892 if (sbi->s_cluster_ratio > 1) { in ext4_ext_remove_space() 2909 } else if (sbi->s_cluster_ratio > 1 && end >= ex_end && in ext4_ext_remove_space() 3050 sbi->s_cluster_ratio, flags); in ext4_ext_remove_space() 4038 (unsigned) sbi->s_cluster_ratio - c_offset); in get_implied_cluster_alloc() 4238 if ((sbi->s_cluster_ratio > in ext4_ext_map_blocks() [all...] |
H A D | ext4.h | 304 #define EXT4_NUM_B2C(sbi, blks) (((blks) + (sbi)->s_cluster_ratio - 1) >> \ 308 ~((ext4_fsblk_t) (s)->s_cluster_ratio - 1)) 310 ~((ext4_lblk_t) (s)->s_cluster_ratio - 1)) 313 ((ext4_lblk_t) (sbi)->s_cluster_ratio - 1)) 316 ((ext4_fsblk_t) (s)->s_cluster_ratio - 1)) 318 ((ext4_lblk_t) (s)->s_cluster_ratio - 1)) 1444 unsigned int s_cluster_ratio; /* Number of blocks per cluster */ member 1445 unsigned int s_cluster_bits; /* log2 of s_cluster_ratio */
|
H A D | resize.c | 2068 sbi->s_itb_per_group + sbi->s_cluster_ratio) >= n_blocks_count) { in ext4_resize_fs()
|
H A D | mballoc.c | 5700 overflow = sbi->s_cluster_ratio - overflow; in ext4_free_blocks() 5721 count += sbi->s_cluster_ratio - overflow; in ext4_free_blocks()
|
H A D | super.c | 4584 sbi->s_cluster_ratio = clustersize / blocksize; in ext4_fill_super() 4626 (sbi->s_cluster_ratio == 1)) { in ext4_fill_super()
|
H A D | inode.c | 1655 if (sbi->s_cluster_ratio == 1) { in ext4_insert_delayed_block()
|
/kernel/linux/linux-6.6/fs/ext4/ |
H A D | ext4_jbd2.h | 297 return blocks * EXT4_SB(sb)->s_cluster_ratio; in ext4_free_metadata_revoke_credits() 488 return blocks + 2*(EXT4_SB(inode->i_sb)->s_cluster_ratio - 1); in ext4_free_data_revoke_credits()
|
H A D | extents_status.c | 398 lblk_end = lblk_start + sbi->s_cluster_ratio - 1; in __es_scan_clu() 886 revise_pending = sbi->s_cluster_ratio > 1 && in ext4_es_insert_extent() 1086 if (sbi->s_cluster_ratio > 1) { in init_rsvd() 1125 if (sbi->s_cluster_ratio == 1) { in count_rsvd() 1170 if ((i + sbi->s_cluster_ratio - 1) <= end) { in count_rsvd() 1249 if (sbi->s_cluster_ratio > 1) { in get_rsvd() 2272 sbi->s_cluster_ratio - 1; in __revise_pending() 2296 last = EXT4_LBLK_CMASK(sbi, end) + sbi->s_cluster_ratio - 1; in __revise_pending()
|
H A D | extents.c | 2479 sbi->s_cluster_ratio, flags); in ext4_remove_blocks() 2498 if ((EXT4_LBLK_COFF(sbi, to) != sbi->s_cluster_ratio - 1) && in ext4_remove_blocks() 2505 sbi->s_cluster_ratio, flags); in ext4_remove_blocks() 2628 if (sbi->s_cluster_ratio > 1) { in ext4_ext_rm_leaf() 2752 sbi->s_cluster_ratio, flags); in ext4_ext_rm_leaf() 2863 if (sbi->s_cluster_ratio > 1) { in ext4_ext_remove_space() 2880 } else if (sbi->s_cluster_ratio > 1 && end >= ex_end && in ext4_ext_remove_space() 3021 sbi->s_cluster_ratio, flags); in ext4_ext_remove_space() 4006 (unsigned) sbi->s_cluster_ratio - c_offset); in get_implied_cluster_alloc() 4259 if ((sbi->s_cluster_ratio > in ext4_ext_map_blocks() [all...] |
H A D | ext4.h | 371 #define EXT4_NUM_B2C(sbi, blks) (((blks) + (sbi)->s_cluster_ratio - 1) >> \ 375 ~((ext4_fsblk_t) (s)->s_cluster_ratio - 1)) 377 ~((ext4_lblk_t) (s)->s_cluster_ratio - 1)) 380 ((ext4_lblk_t) (sbi)->s_cluster_ratio - 1)) 383 ((ext4_fsblk_t) (s)->s_cluster_ratio - 1)) 385 ((ext4_lblk_t) (s)->s_cluster_ratio - 1)) 1492 unsigned int s_cluster_ratio; /* Number of blocks per cluster */ member 1493 unsigned int s_cluster_bits; /* log2 of s_cluster_ratio */
|
H A D | super.c | 4458 sbi->s_cluster_ratio = clustersize / sb->s_blocksize; in ext4_handle_clustersize() 4805 (sbi->s_cluster_ratio == 1)) { in ext4_check_geometry() 5320 if (sbi->s_stripe > 0 && sbi->s_cluster_ratio > 1 && in __ext4_fill_super() 5321 sbi->s_stripe % sbi->s_cluster_ratio != 0) { in __ext4_fill_super() 5325 sbi->s_stripe, sbi->s_cluster_ratio); in __ext4_fill_super()
|
H A D | resize.c | 2119 sbi->s_itb_per_group + sbi->s_cluster_ratio) >= n_blocks_count) { in ext4_resize_fs()
|
H A D | mballoc.c | 6700 overflow = sbi->s_cluster_ratio - overflow; in ext4_free_blocks() 6721 count += sbi->s_cluster_ratio - overflow; in ext4_free_blocks()
|
H A D | inode.c | 1651 if (sbi->s_cluster_ratio == 1) { in ext4_insert_delayed_block()
|
Completed in 81 milliseconds