Blame view
include/linux/ext3_fs_sb.h
2.87 KB
1da177e4c Linux-2.6.12-rc2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
/* * linux/include/linux/ext3_fs_sb.h * * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * * from * * linux/include/linux/minix_fs_sb.h * * Copyright (C) 1991, 1992 Linus Torvalds */ #ifndef _LINUX_EXT3_FS_SB #define _LINUX_EXT3_FS_SB #ifdef __KERNEL__ #include <linux/timer.h> #include <linux/wait.h> #include <linux/blockgroup_lock.h> #include <linux/percpu_counter.h> #endif #include <linux/rbtree.h> /* * third extended-fs super-block data in memory */ struct ext3_sb_info { unsigned long s_frag_size; /* Size of a fragment in bytes */ unsigned long s_frags_per_block;/* Number of fragments per block */ unsigned long s_inodes_per_block;/* Number of inodes per block */ unsigned long s_frags_per_group;/* Number of fragments in a group */ unsigned long s_blocks_per_group;/* Number of blocks in a group */ unsigned long s_inodes_per_group;/* Number of inodes in a group */ unsigned long s_itb_per_group; /* Number of inode table blocks per group */ unsigned long s_gdb_count; /* Number of group descriptor blocks */ unsigned long s_desc_per_block; /* Number of group descriptors per block */ unsigned long s_groups_count; /* Number of groups in the fs */ |
a71ce8c6c ext3: statfs spee... |
41 42 |
unsigned long s_overhead_last; /* Last calculated overhead */ unsigned long s_blocks_last; /* Last seen block count */ |
1da177e4c Linux-2.6.12-rc2 |
43 44 45 46 |
struct buffer_head * s_sbh; /* Buffer containing the super block */ struct ext3_super_block * s_es; /* Pointer to the super block in the buffer */ struct buffer_head ** s_group_desc; unsigned long s_mount_opt; |
571beed8d ext3: show all mo... |
47 |
ext3_fsblk_t s_sb_block; |
1da177e4c Linux-2.6.12-rc2 |
48 49 50 51 52 53 54 55 56 57 58 59 |
uid_t s_resuid; gid_t s_resgid; unsigned short s_mount_state; unsigned short s_pad; int s_addr_per_block_bits; int s_desc_per_block_bits; int s_inode_size; int s_first_ino; spinlock_t s_next_gen_lock; u32 s_next_generation; u32 s_hash_seed[4]; int s_def_hash_version; |
5e1f8c9e2 ext3: Add support... |
60 |
int s_hash_unsigned; /* 3 if hash should be signed, 0 if not */ |
1da177e4c Linux-2.6.12-rc2 |
61 62 63 |
struct percpu_counter s_freeblocks_counter; struct percpu_counter s_freeinodes_counter; struct percpu_counter s_dirs_counter; |
5df096d67 ext3: allocate ->... |
64 |
struct blockgroup_lock *s_blockgroup_lock; |
1da177e4c Linux-2.6.12-rc2 |
65 66 67 68 69 70 71 72 73 74 |
/* root of the per fs reservation window tree */ spinlock_t s_rsv_window_lock; struct rb_root s_rsv_window_root; struct ext3_reserve_window_node s_rsv_window_head; /* Journaling */ struct inode * s_journal_inode; struct journal_s * s_journal; struct list_head s_orphan; |
b8a052d01 ext3: Replace loc... |
75 |
struct mutex s_orphan_lock; |
96d2a495c ext3: Replace loc... |
76 |
struct mutex s_resize_lock; |
1da177e4c Linux-2.6.12-rc2 |
77 78 |
unsigned long s_commit_interval; struct block_device *journal_bdev; |
1da177e4c Linux-2.6.12-rc2 |
79 80 81 82 83 |
#ifdef CONFIG_QUOTA char *s_qf_names[MAXQUOTAS]; /* Names of quota files with journalled quota */ int s_jquota_fmt; /* Format of quota to use */ #endif }; |
c644f0e4b fs: introduce bgl... |
84 85 86 |
static inline spinlock_t * sb_bgl_lock(struct ext3_sb_info *sbi, unsigned int block_group) { |
5df096d67 ext3: allocate ->... |
87 |
return bgl_lock_ptr(sbi->s_blockgroup_lock, block_group); |
c644f0e4b fs: introduce bgl... |
88 |
} |
1da177e4c Linux-2.6.12-rc2 |
89 |
#endif /* _LINUX_EXT3_FS_SB */ |