Home
last modified time | relevance | path

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

/Linux-v6.6/fs/ext4/
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()
Dextents_status.c397 lblk_end = lblk_start + sbi->s_cluster_ratio - 1; in __es_scan_clu()
900 if (sbi->s_cluster_ratio > 1 && test_opt(inode->i_sb, DELALLOC) && in ext4_es_insert_extent()
1060 if (sbi->s_cluster_ratio > 1) { in init_rsvd()
1099 if (sbi->s_cluster_ratio == 1) { in count_rsvd()
1144 if ((i + sbi->s_cluster_ratio - 1) <= end) { in count_rsvd()
1223 if (sbi->s_cluster_ratio > 1) { in get_rsvd()
2225 sbi->s_cluster_ratio - 1; in __revise_pending()
2245 last = EXT4_LBLK_CMASK(sbi, end) + sbi->s_cluster_ratio - 1; in __revise_pending()
Dext4.h371 #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
Dextents.c2503 sbi->s_cluster_ratio, flags); in ext4_remove_blocks()
2522 if ((EXT4_LBLK_COFF(sbi, to) != sbi->s_cluster_ratio - 1) && in ext4_remove_blocks()
2529 sbi->s_cluster_ratio, flags); in ext4_remove_blocks()
2652 if (sbi->s_cluster_ratio > 1) { in ext4_ext_rm_leaf()
2776 sbi->s_cluster_ratio, flags); in ext4_ext_rm_leaf()
2887 if (sbi->s_cluster_ratio > 1) { in ext4_ext_remove_space()
2904 } else if (sbi->s_cluster_ratio > 1 && end >= ex_end && in ext4_ext_remove_space()
3045 sbi->s_cluster_ratio, flags); in ext4_ext_remove_space()
4030 (unsigned) sbi->s_cluster_ratio - c_offset); in get_implied_cluster_alloc()
4230 if ((sbi->s_cluster_ratio > 1) && err && in ext4_ext_map_blocks()
Dsuper.c4457 sbi->s_cluster_ratio = clustersize / sb->s_blocksize; in ext4_handle_clustersize()
4804 (sbi->s_cluster_ratio == 1)) { in ext4_check_geometry()
5319 if (sbi->s_stripe > 0 && sbi->s_cluster_ratio > 1 && in __ext4_fill_super()
5320 sbi->s_stripe % sbi->s_cluster_ratio != 0) { in __ext4_fill_super()
5324 sbi->s_stripe, sbi->s_cluster_ratio); in __ext4_fill_super()
Dresize.c2113 sbi->s_itb_per_group + sbi->s_cluster_ratio) >= n_blocks_count) { in ext4_resize_fs()
Dmballoc.c6692 overflow = sbi->s_cluster_ratio - overflow; in ext4_free_blocks()
6713 count += sbi->s_cluster_ratio - overflow; in ext4_free_blocks()
Dinode.c1639 if (sbi->s_cluster_ratio == 1) { in ext4_insert_delayed_block()