Lines Matching refs:EXT4_SB
42 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) >> in ext4_get_group_number()
56 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_get_group_no_and_offset()
61 EXT4_SB(sb)->s_cluster_bits; in ext4_get_group_no_and_offset()
94 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_num_overhead_clusters()
171 blocks = ext4_blocks_count(EXT4_SB(sb)->s_es) - in num_clusters_in_group()
175 return EXT4_NUM_B2C(EXT4_SB(sb), blocks); in num_clusters_in_group()
185 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_init_block_bitmap()
272 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_get_group_desc()
331 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_valid_block_bitmap()
443 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_read_block_bitmap_nowait()
650 if (!ext4_has_free_clusters(EXT4_SB(sb), 1, 0) || in ext4_should_retry_alloc()
652 !EXT4_SB(sb)->s_journal) in ext4_should_retry_alloc()
656 if (EXT4_SB(sb)->s_mb_free_pending == 0) in ext4_should_retry_alloc()
660 jbd2_journal_force_commit_nested(EXT4_SB(sb)->s_journal); in ext4_should_retry_alloc()
699 EXT4_C2B(EXT4_SB(inode->i_sb), ar.len)); in ext4_new_meta_blocks()
723 es = EXT4_SB(sb)->s_es; in ext4_count_free_clusters()
733 if (EXT4_SB(sb)->s_group_info) in ext4_count_free_clusters()
753 EXT4_NUM_B2C(EXT4_SB(sb), ext4_free_blocks_count(es)), in ext4_count_free_clusters()
763 if (EXT4_SB(sb)->s_group_info) in ext4_count_free_clusters()
796 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_bg_has_super()
836 return le32_to_cpu(EXT4_SB(sb)->s_es->s_first_meta_bg); in ext4_bg_num_gdb_nometa()
838 return EXT4_SB(sb)->s_gdb_count; in ext4_bg_num_gdb_nometa()
853 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_meta_bg); in ext4_bg_num_gdb()
870 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_num_base_meta_clusters()
900 int flex_size = ext4_flex_bg_size(EXT4_SB(inode->i_sb)); in ext4_inode_to_goal_block()
919 last_block = ext4_blocks_count(EXT4_SB(inode->i_sb)->s_es) - 1; in ext4_inode_to_goal_block()