aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ext3_fs_sb.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/ext3_fs_sb.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/ext3_fs_sb.h')
-rw-r--r--include/linux/ext3_fs_sb.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/include/linux/ext3_fs_sb.h b/include/linux/ext3_fs_sb.h
new file mode 100644
index 000000000000..f61309c81cc4
--- /dev/null
+++ b/include/linux/ext3_fs_sb.h
@@ -0,0 +1,83 @@
1/*
2 * linux/include/linux/ext3_fs_sb.h
3 *
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)
8 *
9 * from
10 *
11 * linux/include/linux/minix_fs_sb.h
12 *
13 * Copyright (C) 1991, 1992 Linus Torvalds
14 */
15
16#ifndef _LINUX_EXT3_FS_SB
17#define _LINUX_EXT3_FS_SB
18
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
25#include <linux/rbtree.h>
26
27/*
28 * third extended-fs super-block data in memory
29 */
30struct ext3_sb_info {
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 struct buffer_head * s_sbh; /* Buffer containing the super block */
42 struct ext3_super_block * s_es; /* Pointer to the super block in the buffer */
43 struct buffer_head ** s_group_desc;
44 unsigned long s_mount_opt;
45 uid_t s_resuid;
46 gid_t s_resgid;
47 unsigned short s_mount_state;
48 unsigned short s_pad;
49 int s_addr_per_block_bits;
50 int s_desc_per_block_bits;
51 int s_inode_size;
52 int s_first_ino;
53 spinlock_t s_next_gen_lock;
54 u32 s_next_generation;
55 u32 s_hash_seed[4];
56 int s_def_hash_version;
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;
61
62 /* root of the per fs reservation window tree */
63 spinlock_t s_rsv_window_lock;
64 struct rb_root s_rsv_window_root;
65 struct ext3_reserve_window_node s_rsv_window_head;
66
67 /* Journaling */
68 struct inode * s_journal_inode;
69 struct journal_s * s_journal;
70 struct list_head s_orphan;
71 unsigned long s_commit_interval;
72 struct block_device *journal_bdev;
73#ifdef CONFIG_JBD_DEBUG
74 struct timer_list turn_ro_timer; /* For turning read-only (crash simulation) */
75 wait_queue_head_t ro_wait_queue; /* For people waiting for the fs to go read-only */
76#endif
77#ifdef CONFIG_QUOTA
78 char *s_qf_names[MAXQUOTAS]; /* Names of quota files with journalled quota */
79 int s_jquota_fmt; /* Format of quota to use */
80#endif
81};
82
83#endif /* _LINUX_EXT3_FS_SB */