MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / include / linux / ext3_fs_sb.h
blob8ed3cf7f4ab0c3e2de143ef03da95de3e8ba0e39
1 /*
2 * linux/include/linux/ext3_fs_sb.h
4 * Copyright (C) 1992, 1993, 1994, 1995
5 * Remy Card (card@masi.ibp.fr)
6 * Laboratoire MASI - Institut Blaise Pascal
7 * Universite Pierre et Marie Curie (Paris VI)
9 * from
11 * linux/include/linux/minix_fs_sb.h
13 * Copyright (C) 1991, 1992 Linus Torvalds
16 #ifndef _LINUX_EXT3_FS_SB
17 #define _LINUX_EXT3_FS_SB
19 #ifdef __KERNEL__
20 #include <linux/timer.h>
21 #include <linux/wait.h>
22 #include <linux/blockgroup_lock.h>
23 #include <linux/percpu_counter.h>
24 #endif
27 * third extended-fs super-block data in memory
29 struct ext3_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_gdb_count; /* Number of group descriptor blocks */
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 ext3_super_block * s_es; /* Pointer to the super block in the buffer */
42 struct buffer_head ** s_group_desc;
43 unsigned long s_mount_opt;
44 uid_t s_resuid;
45 gid_t s_resgid;
46 unsigned short s_mount_state;
47 unsigned short s_pad;
48 int s_addr_per_block_bits;
49 int s_desc_per_block_bits;
50 int s_inode_size;
51 int s_first_ino;
52 spinlock_t s_next_gen_lock;
53 u32 s_next_generation;
54 u32 s_hash_seed[4];
55 int s_def_hash_version;
56 u8 *s_debts;
57 struct percpu_counter s_freeblocks_counter;
58 struct percpu_counter s_freeinodes_counter;
59 struct percpu_counter s_dirs_counter;
60 struct blockgroup_lock s_blockgroup_lock;
62 /* Journaling */
63 struct inode * s_journal_inode;
64 struct journal_s * s_journal;
65 struct list_head s_orphan;
66 unsigned long s_commit_interval;
67 struct block_device *journal_bdev;
68 #ifdef CONFIG_JBD_DEBUG
69 struct timer_list turn_ro_timer; /* For turning read-only (crash simulation) */
70 wait_queue_head_t ro_wait_queue; /* For people waiting for the fs to go read-only */
71 #endif
72 #ifdef CONFIG_QUOTA
73 char *s_qf_names[MAXQUOTAS]; /* Names of quota files with journalled quota */
74 int s_jquota_fmt; /* Format of quota to use */
75 #endif
78 #endif /* _LINUX_EXT3_FS_SB */