root/include/linux/ext2_fs_sb.h

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

INCLUDED FROM


   1 /*
   2  *  linux/include/linux/ext2_fs_sb.h
   3  *
   4  *  Copyright (C) 1992, 1993, 1994  Remy Card (card@masi.ibp.fr)
   5  *                                  Laboratoire MASI - Institut Blaise Pascal
   6  *                                  Universite Pierre et Marie Curie (Paris VI)
   7  *
   8  *  from
   9  *
  10  *  linux/include/linux/minix_fs_sb.h
  11  *
  12  *  Copyright (C) 1991, 1992  Linus Torvalds
  13  */
  14 
  15 #ifndef _LINUX_EXT2_FS_SB
  16 #define _LINUX_EXT2_FS_SB
  17 
  18 /*
  19  * The following is not needed anymore since the descriptors buffer
  20  * heads are now dynamically allocated
  21  */
  22 /* #define EXT2_MAX_GROUP_DESC  8 */
  23 
  24 #define EXT2_MAX_GROUP_LOADED   8
  25 
  26 /*
  27  * second extended-fs super-block data in memory
  28  */
  29 struct ext2_sb_info {
  30         unsigned long s_frag_size;      /* Size of a fragment in bytes */
  31         unsigned long s_frags_per_block;/* Number of fragments per block */
  32         unsigned long s_inodes_per_block;/* Number of inodes per block */
  33         unsigned long s_frags_per_group;/* Number of fragments in a group */
  34         unsigned long s_blocks_per_group;/* Number of blocks in a group */
  35         unsigned long s_inodes_per_group;/* Number of inodes in a group */
  36         unsigned long s_itb_per_group;  /* Number of inode table blocks per group */
  37         unsigned long s_db_per_group;   /* Number of descriptor blocks per group */
  38         unsigned long s_desc_per_block; /* Number of group descriptors per block */
  39         unsigned long s_groups_count;   /* Number of groups in the fs */
  40         struct buffer_head * s_sbh;     /* Buffer containing the super block */
  41         struct ext2_super_block * s_es; /* Pointer to the super block in the buffer */
  42         struct buffer_head ** s_group_desc;
  43         unsigned short s_loaded_inode_bitmaps;
  44         unsigned short s_loaded_block_bitmaps;
  45         unsigned long s_inode_bitmap_number[EXT2_MAX_GROUP_LOADED];
  46         struct buffer_head * s_inode_bitmap[EXT2_MAX_GROUP_LOADED];
  47         unsigned long s_block_bitmap_number[EXT2_MAX_GROUP_LOADED];
  48         struct buffer_head * s_block_bitmap[EXT2_MAX_GROUP_LOADED];
  49         int s_rename_lock;
  50         struct wait_queue * s_rename_wait;
  51         unsigned long  s_mount_opt;
  52         unsigned short s_resuid;
  53         unsigned short s_resgid;
  54         unsigned short s_mount_state;
  55 };
  56 
  57 #endif  /* _LINUX_EXT2_FS_SB */

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