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)
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
20 #include <linux/timer.h>
21 #include <linux/wait.h>
22 #include <linux/blockgroup_lock.h>
23 #include <linux/percpu_counter.h>
25 #include <linux/rbtree.h>
28 * third extended-fs super-block data in memory
31 unsigned long s_frag_size
; /* Size of a fragment in bytes */
32 unsigned long s_frags_per_block
;/* Number of fragments per block */
33 unsigned long s_inodes_per_block
;/* Number of inodes per block */
34 unsigned long s_frags_per_group
;/* Number of fragments in a group */
35 unsigned long s_blocks_per_group
;/* Number of blocks in a group */
36 unsigned long s_inodes_per_group
;/* Number of inodes in a group */
37 unsigned long s_itb_per_group
; /* Number of inode table blocks per group */
38 unsigned long s_gdb_count
; /* Number of group descriptor blocks */
39 unsigned long s_desc_per_block
; /* Number of group descriptors per block */
40 unsigned long s_groups_count
; /* Number of groups in the fs */
41 unsigned long s_overhead_last
; /* Last calculated overhead */
42 unsigned long s_blocks_last
; /* Last seen block count */
43 struct buffer_head
* s_sbh
; /* Buffer containing the super block */
44 struct ext3_super_block
* s_es
; /* Pointer to the super block in the buffer */
45 struct buffer_head
** s_group_desc
;
46 unsigned long s_mount_opt
;
49 unsigned short s_mount_state
;
51 int s_addr_per_block_bits
;
52 int s_desc_per_block_bits
;
55 spinlock_t s_next_gen_lock
;
56 u32 s_next_generation
;
58 int s_def_hash_version
;
59 struct percpu_counter s_freeblocks_counter
;
60 struct percpu_counter s_freeinodes_counter
;
61 struct percpu_counter s_dirs_counter
;
62 struct blockgroup_lock s_blockgroup_lock
;
64 /* root of the per fs reservation window tree */
65 spinlock_t s_rsv_window_lock
;
66 struct rb_root s_rsv_window_root
;
67 struct ext3_reserve_window_node s_rsv_window_head
;
70 struct inode
* s_journal_inode
;
71 struct journal_s
* s_journal
;
72 struct list_head s_orphan
;
73 unsigned long s_commit_interval
;
74 struct block_device
*journal_bdev
;
75 #ifdef CONFIG_JBD_DEBUG
76 struct timer_list turn_ro_timer
; /* For turning read-only (crash simulation) */
77 wait_queue_head_t ro_wait_queue
; /* For people waiting for the fs to go read-only */
80 char *s_qf_names
[MAXQUOTAS
]; /* Names of quota files with journalled quota */
81 int s_jquota_fmt
; /* Format of quota to use */
85 #endif /* _LINUX_EXT3_FS_SB */