Searched refs:s_cluster_ratio (Results 1 – 8 of 8) sorted by relevance
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()
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()
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
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 > 1) && err && in ext4_ext_map_blocks()
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()
2118 sbi->s_itb_per_group + sbi->s_cluster_ratio) >= n_blocks_count) { in ext4_resize_fs()
6695 overflow = sbi->s_cluster_ratio - overflow; in ext4_free_blocks()6716 count += sbi->s_cluster_ratio - overflow; in ext4_free_blocks()
1651 if (sbi->s_cluster_ratio == 1) { in ext4_insert_delayed_block()