diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 18:56:51 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-09 18:56:51 -0400 |
commit | 5704265188ffe4290ed73b3cb685206c3ed8209d (patch) | |
tree | 6bc51bea59625b2a7c8e4b74bbb66884371f74dd /fs/ext4/ext4.h | |
parent | 0aa060000e83ca3d09ddc446a7174fb0820d99bc (diff) |
ext4: convert s_{dirty,free}blocks_counter to s_{dirty,free}clusters_counter
Convert the percpu counters s_dirtyblocks_counter and
s_freeblocks_counter in struct ext4_super_info to be
s_dirtyclusters_counter and s_freeclusters_counter.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 030bfc1cb59d..c7588366471c 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -855,6 +855,7 @@ struct ext4_inode_info { | |||
855 | ext4_group_t i_last_alloc_group; | 855 | ext4_group_t i_last_alloc_group; |
856 | 856 | ||
857 | /* allocation reservation info for delalloc */ | 857 | /* allocation reservation info for delalloc */ |
858 | /* In case of bigalloc, these refer to clusters rather than blocks */ | ||
858 | unsigned int i_reserved_data_blocks; | 859 | unsigned int i_reserved_data_blocks; |
859 | unsigned int i_reserved_meta_blocks; | 860 | unsigned int i_reserved_meta_blocks; |
860 | unsigned int i_allocated_meta_blocks; | 861 | unsigned int i_allocated_meta_blocks; |
@@ -1144,10 +1145,10 @@ struct ext4_sb_info { | |||
1144 | u32 s_hash_seed[4]; | 1145 | u32 s_hash_seed[4]; |
1145 | int s_def_hash_version; | 1146 | int s_def_hash_version; |
1146 | int s_hash_unsigned; /* 3 if hash should be signed, 0 if not */ | 1147 | int s_hash_unsigned; /* 3 if hash should be signed, 0 if not */ |
1147 | struct percpu_counter s_freeblocks_counter; | 1148 | struct percpu_counter s_freeclusters_counter; |
1148 | struct percpu_counter s_freeinodes_counter; | 1149 | struct percpu_counter s_freeinodes_counter; |
1149 | struct percpu_counter s_dirs_counter; | 1150 | struct percpu_counter s_dirs_counter; |
1150 | struct percpu_counter s_dirtyblocks_counter; | 1151 | struct percpu_counter s_dirtyclusters_counter; |
1151 | struct blockgroup_lock *s_blockgroup_lock; | 1152 | struct blockgroup_lock *s_blockgroup_lock; |
1152 | struct proc_dir_entry *s_proc; | 1153 | struct proc_dir_entry *s_proc; |
1153 | struct kobject s_kobj; | 1154 | struct kobject s_kobj; |