1 #ifndef _EXT2_FS_SB
2 #define _EXT2_FS_SB
3
4 #define EXT2_MAX_GROUP_DESC 4
5 #define EXT2_MAX_GROUP_LOADED 8
6
7
8
9
10 struct ext2_sb_info {
11 unsigned long s_inodes_count;
12 unsigned long s_blocks_count;
13 unsigned long s_r_blocks_count;
14 unsigned long s_first_data_block;
15 unsigned long s_log_block_size;
16 long s_log_frag_size;
17 unsigned long s_frag_size;
18 unsigned long s_frags_per_block;
19 unsigned long s_inodes_per_block;
20 unsigned long s_frags_per_group;
21 unsigned long s_blocks_per_group;
22 unsigned long s_inodes_per_group;
23 unsigned long s_desc_per_block;
24 unsigned long s_groups_count;
25 struct buffer_head * s_sbh;
26 struct buffer_head * s_group_desc[EXT2_MAX_GROUP_DESC];
27 unsigned short s_loaded_inode_bitmaps;
28 unsigned short s_loaded_block_bitmaps;
29 unsigned long s_inode_bitmap_number[EXT2_MAX_GROUP_LOADED];
30 struct buffer_head * s_inode_bitmap[EXT2_MAX_GROUP_LOADED];
31 unsigned long s_block_bitmap_number[EXT2_MAX_GROUP_LOADED];
32 struct buffer_head * s_block_bitmap[EXT2_MAX_GROUP_LOADED];
33 int s_rename_lock;
34 int s_was_mounted_valid;
35 struct wait_queue * s_rename_wait;
36 };
37
38 #endif