Home
last modified time | relevance | path

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

/linux/fs/ext4/
H A Dext4_jbd2.h297 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 Dextents_status.c398 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()
2275 sbi->s_cluster_ratio - 1; in __revise_pending()
2299 last = EXT4_LBLK_CMASK(sbi, end) + sbi->s_cluster_ratio - 1; in __revise_pending()
H A Dext4.h376 #define EXT4_NUM_B2C(sbi, blks) (((blks) + (sbi)->s_cluster_ratio - 1) >> \
380 ~((ext4_fsblk_t) (s)->s_cluster_ratio - 1))
382 ~((ext4_lblk_t) (s)->s_cluster_ratio - 1))
385 ((ext4_lblk_t) (sbi)->s_cluster_ratio - 1))
388 ((ext4_fsblk_t) (s)->s_cluster_ratio - 1))
390 ((ext4_lblk_t) (s)->s_cluster_ratio - 1))
1507 unsigned int s_cluster_ratio; /* Number of blocks per cluster */ member
H A Dextents.c2479 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()
4007 (unsigned) sbi->s_cluster_ratio - c_offset); in get_implied_cluster_alloc()
4263 if ((sbi->s_cluster_ratio > 1) && err && in ext4_ext_map_blocks()
H A Dmballoc-test.c200 sbi->s_cluster_ratio = 1U << layout->cluster_bits; in mbt_init_sb_layout()
H A Dsuper.c4430 sbi->s_cluster_ratio = clustersize / sb->s_blocksize; in ext4_handle_clustersize()
4777 (sbi->s_cluster_ratio == 1)) { in ext4_check_geometry()
5292 if (sbi->s_stripe > 0 && sbi->s_cluster_ratio > 1 && in __ext4_fill_super()
5293 sbi->s_stripe % sbi->s_cluster_ratio != 0) { in __ext4_fill_super()
5297 sbi->s_stripe, sbi->s_cluster_ratio); in __ext4_fill_super()
H A Dresize.c2112 sbi->s_itb_per_group + sbi->s_cluster_ratio) >= n_blocks_count) { in ext4_resize_fs()
H A Dmballoc.c6615 overflow = sbi->s_cluster_ratio - overflow; in ext4_free_blocks()
6636 count += sbi->s_cluster_ratio - overflow; in ext4_free_blocks()
H A Dinode.c1651 if (sbi->s_cluster_ratio == 1) { in ext4_insert_delayed_block()