root/include/linux/ext2_fs_sb.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   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  * second extended-fs super-block data in memory
   9  */
  10 struct ext2_sb_info {
  11         unsigned long s_inodes_count;   /* Inodes count */
  12         unsigned long s_blocks_count;   /* Blocks count */
  13         unsigned long s_r_blocks_count; /* Reserved blocks count */
  14         unsigned long s_first_data_block;/* First data block */
  15         unsigned long s_log_block_size; /* Log of block size */
  16         long s_log_frag_size;           /* Log of fragment size */
  17         unsigned long s_frag_size;      /* Size of a fragment in bytes */
  18         unsigned long s_frags_per_block;/* Number of fragments per block */
  19         unsigned long s_inodes_per_block;/* Number of inodes per block */
  20         unsigned long s_frags_per_group;/* Number of fragments in a group */
  21         unsigned long s_blocks_per_group;/* Number of blocks in a group */
  22         unsigned long s_inodes_per_group;/* Number of inodes in a group */
  23         unsigned long s_desc_per_block; /* Number of group descriptors per block */
  24         unsigned long s_groups_count;   /* Number of groups in the fs */
  25         struct buffer_head * s_sbh;     /* Buffer containing the super block */
  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

/* [previous][next][first][last][top][bottom][index][help] */