diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 12:13:26 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 12:13:26 -0500 |
commit | b05e6ae58a13b56e3e11882c1fc71948c9b29760 (patch) | |
tree | 452cbadcbc8091b4db95f917f28b0f9de845dabf /fs/ext4/ext4.h | |
parent | 01f49d0b9d0209dc1194255b11601e4b94447b36 (diff) |
ext4: drop ec_type from the ext4_ext_cache structure
We can encode the ec_type information by using ee_len == 0 to denote
EXT4_EXT_CACHE_NO, ee_start == 0 to denote EXT4_EXT_CACHE_GAP, and if
neither is true, then the cache type must be EXT4_EXT_CACHE_EXTENT.
This allows us to reduce the size of ext4_ext_inode by another 8
bytes. (ec_type is 4 bytes, plus another 4 bytes of padding)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 746a59853a07..de937fc10503 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -738,12 +738,13 @@ do { \ | |||
738 | 738 | ||
739 | /* | 739 | /* |
740 | * storage for cached extent | 740 | * storage for cached extent |
741 | * If ec_len == 0, then the cache is invalid. | ||
742 | * If ec_start == 0, then the cache represents a gap (null mapping) | ||
741 | */ | 743 | */ |
742 | struct ext4_ext_cache { | 744 | struct ext4_ext_cache { |
743 | ext4_fsblk_t ec_start; | 745 | ext4_fsblk_t ec_start; |
744 | ext4_lblk_t ec_block; | 746 | ext4_lblk_t ec_block; |
745 | __u32 ec_len; /* must be 32bit to return holes */ | 747 | __u32 ec_len; /* must be 32bit to return holes */ |
746 | __u32 ec_type; | ||
747 | }; | 748 | }; |
748 | 749 | ||
749 | /* | 750 | /* |