diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/ext4_extents.h | 5 | ||||
-rw-r--r-- | fs/ext4/ext4_i.h | 1 | ||||
-rw-r--r-- | fs/ext4/extents.c | 2 |
3 files changed, 0 insertions, 8 deletions
diff --git a/fs/ext4/ext4_extents.h b/fs/ext4/ext4_extents.h index bec7ce59fc0d..18cb67b2cbbc 100644 --- a/fs/ext4/ext4_extents.h +++ b/fs/ext4/ext4_extents.h | |||
@@ -194,11 +194,6 @@ static inline unsigned short ext_depth(struct inode *inode) | |||
194 | return le16_to_cpu(ext_inode_hdr(inode)->eh_depth); | 194 | return le16_to_cpu(ext_inode_hdr(inode)->eh_depth); |
195 | } | 195 | } |
196 | 196 | ||
197 | static inline void ext4_ext_tree_changed(struct inode *inode) | ||
198 | { | ||
199 | EXT4_I(inode)->i_ext_generation++; | ||
200 | } | ||
201 | |||
202 | static inline void | 197 | static inline void |
203 | ext4_ext_invalidate_cache(struct inode *inode) | 198 | ext4_ext_invalidate_cache(struct inode *inode) |
204 | { | 199 | { |
diff --git a/fs/ext4/ext4_i.h b/fs/ext4/ext4_i.h index 5c124c0ac6d3..acc0b726d8ab 100644 --- a/fs/ext4/ext4_i.h +++ b/fs/ext4/ext4_i.h | |||
@@ -117,7 +117,6 @@ struct ext4_inode_info { | |||
117 | struct inode vfs_inode; | 117 | struct inode vfs_inode; |
118 | struct jbd2_inode jinode; | 118 | struct jbd2_inode jinode; |
119 | 119 | ||
120 | unsigned long i_ext_generation; | ||
121 | struct ext4_ext_cache i_cached_extent; | 120 | struct ext4_ext_cache i_cached_extent; |
122 | /* | 121 | /* |
123 | * File creation time. Its function is same as that of | 122 | * File creation time. Its function is same as that of |
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 743e3feb3e50..b9e27bc31559 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -1621,7 +1621,6 @@ cleanup: | |||
1621 | ext4_ext_drop_refs(npath); | 1621 | ext4_ext_drop_refs(npath); |
1622 | kfree(npath); | 1622 | kfree(npath); |
1623 | } | 1623 | } |
1624 | ext4_ext_tree_changed(inode); | ||
1625 | ext4_ext_invalidate_cache(inode); | 1624 | ext4_ext_invalidate_cache(inode); |
1626 | return err; | 1625 | return err; |
1627 | } | 1626 | } |
@@ -2232,7 +2231,6 @@ static int ext4_ext_remove_space(struct inode *inode, ext4_lblk_t start) | |||
2232 | } | 2231 | } |
2233 | } | 2232 | } |
2234 | out: | 2233 | out: |
2235 | ext4_ext_tree_changed(inode); | ||
2236 | ext4_ext_drop_refs(path); | 2234 | ext4_ext_drop_refs(path); |
2237 | kfree(path); | 2235 | kfree(path); |
2238 | ext4_journal_stop(handle); | 2236 | ext4_journal_stop(handle); |