diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 12:12:36 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 12:12:36 -0500 |
commit | f232109773ff5b0c840a6761d74940b9cf0d66ec (patch) | |
tree | a32da5ebd1a3e074e9f52107f3bdc23babb6340c /fs/ext4/ext4.h | |
parent | ad4fb9cafe100a4a9de6e0529015e584d94ac8dc (diff) |
ext4: replace i_delalloc_reserved_flag with EXT4_STATE_DELALLOC_RESERVED
Remove the short element i_delalloc_reserved_flag from the
ext4_inode_info structure and replace it a new bit in i_state_flags.
Since we have an ext4_inode_info for every ext4 inode cached in the
inode cache, any savings we can produce here is a very good thing from
a memory utilization perspective.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 2a739255ee05..b7ee66ff9962 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -828,7 +828,6 @@ struct ext4_inode_info { | |||
828 | unsigned int i_reserved_data_blocks; | 828 | unsigned int i_reserved_data_blocks; |
829 | unsigned int i_reserved_meta_blocks; | 829 | unsigned int i_reserved_meta_blocks; |
830 | unsigned int i_allocated_meta_blocks; | 830 | unsigned int i_allocated_meta_blocks; |
831 | unsigned short i_delalloc_reserved_flag; | ||
832 | sector_t i_da_metadata_calc_last_lblock; | 831 | sector_t i_da_metadata_calc_last_lblock; |
833 | int i_da_metadata_calc_len; | 832 | int i_da_metadata_calc_len; |
834 | 833 | ||
@@ -1235,6 +1234,7 @@ enum { | |||
1235 | EXT4_STATE_EXT_MIGRATE, /* Inode is migrating */ | 1234 | EXT4_STATE_EXT_MIGRATE, /* Inode is migrating */ |
1236 | EXT4_STATE_DIO_UNWRITTEN, /* need convert on dio done*/ | 1235 | EXT4_STATE_DIO_UNWRITTEN, /* need convert on dio done*/ |
1237 | EXT4_STATE_NEWENTRY, /* File just added to dir */ | 1236 | EXT4_STATE_NEWENTRY, /* File just added to dir */ |
1237 | EXT4_STATE_DELALLOC_RESERVED, /* blks already reserved for delalloc */ | ||
1238 | }; | 1238 | }; |
1239 | 1239 | ||
1240 | #define EXT4_INODE_BIT_FNS(name, field) \ | 1240 | #define EXT4_INODE_BIT_FNS(name, field) \ |