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()
366 unsigned int itb = EXT4_SB(sb)->s_itb_per_group; in ext4_alloc_group_tables()
385 start_blk += EXT4_SB(sb)->s_itb_per_group; in ext4_alloc_group_tables()
391 EXT4_NUM_B2C(EXT4_SB(sb), in ext4_alloc_group_tables()
457 struct ext4_sb_info *sbi = EXT4_SB(sb); in set_flexbg_block_bitmap()
528 int group_table_count[] = {1, 1, EXT4_SB(sb)->s_itb_per_group}; in setup_new_flex_group_blocks()
531 struct ext4_sb_info *sbi = EXT4_SB(sb); in setup_new_flex_group_blocks()
737 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_list_backups()
825 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in add_new_gdb()
827 ext4_fsblk_t gdblock = EXT4_SB(sb)->s_sbh->b_blocknr + 1 + gdb_num; in add_new_gdb()
867 BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access"); in add_new_gdb()
868 err = ext4_journal_get_write_access(handle, sb, EXT4_SB(sb)->s_sbh, in add_new_gdb()
915 (9 - EXT4_SB(sb)->s_cluster_bits); in add_new_gdb()
927 o_group_desc = rcu_dereference(EXT4_SB(sb)->s_group_desc); in add_new_gdb()
929 EXT4_SB(sb)->s_gdb_count * sizeof(struct buffer_head *)); in add_new_gdb()
932 rcu_assign_pointer(EXT4_SB(sb)->s_group_desc, n_group_desc); in add_new_gdb()
933 EXT4_SB(sb)->s_gdb_count++; in add_new_gdb()
936 lock_buffer(EXT4_SB(sb)->s_sbh); in add_new_gdb()
939 unlock_buffer(EXT4_SB(sb)->s_sbh); in add_new_gdb()
940 err = ext4_handle_dirty_metadata(handle, NULL, EXT4_SB(sb)->s_sbh); in add_new_gdb()
981 o_group_desc = rcu_dereference(EXT4_SB(sb)->s_group_desc); in add_new_gdb_meta_bg()
983 EXT4_SB(sb)->s_gdb_count * sizeof(struct buffer_head *)); in add_new_gdb_meta_bg()
995 rcu_assign_pointer(EXT4_SB(sb)->s_group_desc, n_group_desc); in add_new_gdb_meta_bg()
996 EXT4_SB(sb)->s_gdb_count++; in add_new_gdb_meta_bg()
1018 int reserved_gdb =le16_to_cpu(EXT4_SB(sb)->s_es->s_reserved_gdt_blocks); in reserve_backup_gdb()
1019 int cluster_bits = EXT4_SB(sb)->s_cluster_bits; in reserve_backup_gdb()
1041 blk = EXT4_SB(sb)->s_sbh->b_blocknr + 1 + EXT4_SB(sb)->s_gdb_count; in reserve_backup_gdb()
1042 data = (__le32 *)dind->b_data + (EXT4_SB(sb)->s_gdb_count % in reserve_backup_gdb()
1142 struct ext4_sb_info *sbi = EXT4_SB(sb); in update_backups()
1253 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_add_new_descs()
1342 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_setup_new_descs()
1402 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_add_overhead()
1424 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_update_super()
1538 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_flex_group_add()
1630 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_setup_next_flex_gd()
1704 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_group_add()
1774 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_group_extend_no_check()
1788 BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access"); in ext4_group_extend_no_check()
1789 err = ext4_journal_get_write_access(handle, sb, EXT4_SB(sb)->s_sbh, in ext4_group_extend_no_check()
1796 lock_buffer(EXT4_SB(sb)->s_sbh); in ext4_group_extend_no_check()
1800 unlock_buffer(EXT4_SB(sb)->s_sbh); in ext4_group_extend_no_check()
1807 ext4_handle_dirty_metadata(handle, NULL, EXT4_SB(sb)->s_sbh); in ext4_group_extend_no_check()
1915 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_convert_meta_bg()
2004 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_resize_fs()