1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 #ifndef _LINUX_EXT2_FS_SB
17 #define _LINUX_EXT2_FS_SB
18
19 #include <linux/ext2_fs.h>
20
21
22
23
24
25
26
27 #define EXT2_MAX_GROUP_LOADED 8
28
29
30
31
32 struct ext2_sb_info {
33 unsigned long s_frag_size;
34 unsigned long s_frags_per_block;
35 unsigned long s_inodes_per_block;
36 unsigned long s_frags_per_group;
37 unsigned long s_blocks_per_group;
38 unsigned long s_inodes_per_group;
39 unsigned long s_itb_per_group;
40 unsigned long s_db_per_group;
41 unsigned long s_desc_per_block;
42 unsigned long s_groups_count;
43 struct buffer_head * s_sbh;
44 struct ext2_super_block * s_es;
45 struct buffer_head ** s_group_desc;
46 unsigned short s_loaded_inode_bitmaps;
47 unsigned short s_loaded_block_bitmaps;
48 unsigned long s_inode_bitmap_number[EXT2_MAX_GROUP_LOADED];
49 struct buffer_head * s_inode_bitmap[EXT2_MAX_GROUP_LOADED];
50 unsigned long s_block_bitmap_number[EXT2_MAX_GROUP_LOADED];
51 struct buffer_head * s_block_bitmap[EXT2_MAX_GROUP_LOADED];
52 int s_rename_lock;
53 struct wait_queue * s_rename_wait;
54 unsigned long s_mount_opt;
55 unsigned short s_resuid;
56 unsigned short s_resgid;
57 unsigned short s_mount_state;
58 unsigned short s_pad;
59 int s_addr_per_block_bits;
60 int s_inodes_per_block_bits;
61 int s_desc_per_block_bits;
62 };
63
64 #endif