diff options
Diffstat (limited to 'fs/ext4/ext4_sb.h')
-rw-r--r-- | fs/ext4/ext4_sb.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/fs/ext4/ext4_sb.h b/fs/ext4/ext4_sb.h index 039b6ea1a042..57b71fefbccf 100644 --- a/fs/ext4/ext4_sb.h +++ b/fs/ext4/ext4_sb.h | |||
@@ -62,12 +62,10 @@ struct ext4_sb_info { | |||
62 | struct percpu_counter s_freeinodes_counter; | 62 | struct percpu_counter s_freeinodes_counter; |
63 | struct percpu_counter s_dirs_counter; | 63 | struct percpu_counter s_dirs_counter; |
64 | struct percpu_counter s_dirtyblocks_counter; | 64 | struct percpu_counter s_dirtyblocks_counter; |
65 | struct blockgroup_lock s_blockgroup_lock; | 65 | struct blockgroup_lock *s_blockgroup_lock; |
66 | struct proc_dir_entry *s_proc; | 66 | struct proc_dir_entry *s_proc; |
67 | 67 | struct kobject s_kobj; | |
68 | /* root of the per fs reservation window tree */ | 68 | struct completion s_kobj_unregister; |
69 | spinlock_t s_rsv_window_lock; | ||
70 | struct rb_root s_rsv_window_root; | ||
71 | 69 | ||
72 | /* Journaling */ | 70 | /* Journaling */ |
73 | struct inode *s_journal_inode; | 71 | struct inode *s_journal_inode; |
@@ -146,6 +144,10 @@ struct ext4_sb_info { | |||
146 | /* locality groups */ | 144 | /* locality groups */ |
147 | struct ext4_locality_group *s_locality_groups; | 145 | struct ext4_locality_group *s_locality_groups; |
148 | 146 | ||
147 | /* for write statistics */ | ||
148 | unsigned long s_sectors_written_start; | ||
149 | u64 s_kbytes_written; | ||
150 | |||
149 | unsigned int s_log_groups_per_flex; | 151 | unsigned int s_log_groups_per_flex; |
150 | struct flex_groups *s_flex_groups; | 152 | struct flex_groups *s_flex_groups; |
151 | }; | 153 | }; |
@@ -153,7 +155,7 @@ struct ext4_sb_info { | |||
153 | static inline spinlock_t * | 155 | static inline spinlock_t * |
154 | sb_bgl_lock(struct ext4_sb_info *sbi, unsigned int block_group) | 156 | sb_bgl_lock(struct ext4_sb_info *sbi, unsigned int block_group) |
155 | { | 157 | { |
156 | return bgl_lock_ptr(&sbi->s_blockgroup_lock, block_group); | 158 | return bgl_lock_ptr(sbi->s_blockgroup_lock, block_group); |
157 | } | 159 | } |
158 | 160 | ||
159 | #endif /* _EXT4_SB */ | 161 | #endif /* _EXT4_SB */ |