Lines Matching refs:EXT4_SB
50 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_resize_begin()
60 if (EXT4_SB(sb)->s_es->s_reserved_gdt_blocks && in ext4_resize_begin()
72 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) { in ext4_resize_begin()
74 (unsigned long long)EXT4_SB(sb)->s_sbh->b_blocknr); in ext4_resize_begin()
82 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_resize_begin()
94 &EXT4_SB(sb)->s_ext4_flags)) in ext4_resize_begin()
102 clear_bit_unlock(EXT4_FLAGS_RESIZING, &EXT4_SB(sb)->s_ext4_flags); in ext4_resize_end()
127 le16_to_cpu(EXT4_SB(sb)->s_es->s_reserved_gdt_blocks); in ext4_group_overhead_blocks()
137 struct ext4_sb_info *sbi = EXT4_SB(sb); in verify_group_input()
374 unsigned int itb = EXT4_SB(sb)->s_itb_per_group; in ext4_alloc_group_tables()
393 start_blk += EXT4_SB(sb)->s_itb_per_group; in ext4_alloc_group_tables()
399 EXT4_NUM_B2C(EXT4_SB(sb), in ext4_alloc_group_tables()
465 struct ext4_sb_info *sbi = EXT4_SB(sb); in set_flexbg_block_bitmap()
536 int group_table_count[] = {1, 1, EXT4_SB(sb)->s_itb_per_group}; in setup_new_flex_group_blocks()
539 struct ext4_sb_info *sbi = EXT4_SB(sb); in setup_new_flex_group_blocks()
740 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_list_backups()
828 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in add_new_gdb()
830 ext4_fsblk_t gdblock = EXT4_SB(sb)->s_sbh->b_blocknr + 1 + gdb_num; in add_new_gdb()
870 BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access"); in add_new_gdb()
871 err = ext4_journal_get_write_access(handle, sb, EXT4_SB(sb)->s_sbh, in add_new_gdb()
918 (9 - EXT4_SB(sb)->s_cluster_bits); in add_new_gdb()
930 o_group_desc = rcu_dereference(EXT4_SB(sb)->s_group_desc); in add_new_gdb()
932 EXT4_SB(sb)->s_gdb_count * sizeof(struct buffer_head *)); in add_new_gdb()
935 rcu_assign_pointer(EXT4_SB(sb)->s_group_desc, n_group_desc); in add_new_gdb()
936 EXT4_SB(sb)->s_gdb_count++; in add_new_gdb()
939 lock_buffer(EXT4_SB(sb)->s_sbh); in add_new_gdb()
942 unlock_buffer(EXT4_SB(sb)->s_sbh); in add_new_gdb()
943 err = ext4_handle_dirty_metadata(handle, NULL, EXT4_SB(sb)->s_sbh); in add_new_gdb()
984 o_group_desc = rcu_dereference(EXT4_SB(sb)->s_group_desc); in add_new_gdb_meta_bg()
986 EXT4_SB(sb)->s_gdb_count * sizeof(struct buffer_head *)); in add_new_gdb_meta_bg()
998 rcu_assign_pointer(EXT4_SB(sb)->s_group_desc, n_group_desc); in add_new_gdb_meta_bg()
999 EXT4_SB(sb)->s_gdb_count++; in add_new_gdb_meta_bg()
1021 int reserved_gdb =le16_to_cpu(EXT4_SB(sb)->s_es->s_reserved_gdt_blocks); in reserve_backup_gdb()
1022 int cluster_bits = EXT4_SB(sb)->s_cluster_bits; in reserve_backup_gdb()
1044 blk = EXT4_SB(sb)->s_sbh->b_blocknr + 1 + EXT4_SB(sb)->s_gdb_count; in reserve_backup_gdb()
1045 data = (__le32 *)dind->b_data + (EXT4_SB(sb)->s_gdb_count % in reserve_backup_gdb()
1145 struct ext4_sb_info *sbi = EXT4_SB(sb); in update_backups()
1258 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_add_new_descs()
1346 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_setup_new_descs()
1406 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_add_overhead()
1428 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_update_super()
1542 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_flex_group_add()
1635 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_setup_next_flex_gd()
1709 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_group_add()
1779 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_group_extend_no_check()
1793 BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access"); in ext4_group_extend_no_check()
1794 err = ext4_journal_get_write_access(handle, sb, EXT4_SB(sb)->s_sbh, in ext4_group_extend_no_check()
1801 lock_buffer(EXT4_SB(sb)->s_sbh); in ext4_group_extend_no_check()
1805 unlock_buffer(EXT4_SB(sb)->s_sbh); in ext4_group_extend_no_check()
1812 ext4_handle_dirty_metadata(handle, NULL, EXT4_SB(sb)->s_sbh); in ext4_group_extend_no_check()
1918 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_convert_meta_bg()
2005 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_resize_fs()