diff options
Diffstat (limited to 'fs/ext4/ext4_extents.h')
-rw-r--r-- | fs/ext4/ext4_extents.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/ext4/ext4_extents.h b/fs/ext4/ext4_extents.h index 28ce70fd9cd..2e29abb30f7 100644 --- a/fs/ext4/ext4_extents.h +++ b/fs/ext4/ext4_extents.h | |||
@@ -119,10 +119,6 @@ struct ext4_ext_path { | |||
119 | * structure for external API | 119 | * structure for external API |
120 | */ | 120 | */ |
121 | 121 | ||
122 | #define EXT4_EXT_CACHE_NO 0 | ||
123 | #define EXT4_EXT_CACHE_GAP 1 | ||
124 | #define EXT4_EXT_CACHE_EXTENT 2 | ||
125 | |||
126 | /* | 122 | /* |
127 | * to be called by ext4_ext_walk_space() | 123 | * to be called by ext4_ext_walk_space() |
128 | * negative retcode - error | 124 | * negative retcode - error |
@@ -197,7 +193,7 @@ static inline unsigned short ext_depth(struct inode *inode) | |||
197 | static inline void | 193 | static inline void |
198 | ext4_ext_invalidate_cache(struct inode *inode) | 194 | ext4_ext_invalidate_cache(struct inode *inode) |
199 | { | 195 | { |
200 | EXT4_I(inode)->i_cached_extent.ec_type = EXT4_EXT_CACHE_NO; | 196 | EXT4_I(inode)->i_cached_extent.ec_len = 0; |
201 | } | 197 | } |
202 | 198 | ||
203 | static inline void ext4_ext_mark_uninitialized(struct ext4_extent *ext) | 199 | static inline void ext4_ext_mark_uninitialized(struct ext4_extent *ext) |
@@ -278,7 +274,7 @@ static inline void ext4_idx_store_pblock(struct ext4_extent_idx *ix, | |||
278 | } | 274 | } |
279 | 275 | ||
280 | extern int ext4_ext_calc_metadata_amount(struct inode *inode, | 276 | extern int ext4_ext_calc_metadata_amount(struct inode *inode, |
281 | sector_t lblocks); | 277 | ext4_lblk_t lblocks); |
282 | extern int ext4_extent_tree_init(handle_t *, struct inode *); | 278 | extern int ext4_extent_tree_init(handle_t *, struct inode *); |
283 | extern int ext4_ext_calc_credits_for_single_extent(struct inode *inode, | 279 | extern int ext4_ext_calc_credits_for_single_extent(struct inode *inode, |
284 | int num, | 280 | int num, |