Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ext4: Remove i_ext_generation from ext4_inode_info structure

The i_ext_generation was incremented, but never used. Remove it to
slim down the ext4_inode_info structure.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

-8
-5
fs/ext4/ext4_extents.h
··· 194 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 197 static inline void 203 198 ext4_ext_invalidate_cache(struct inode *inode) 204 199 {
-1
fs/ext4/ext4_i.h
··· 117 117 struct inode vfs_inode; 118 118 struct jbd2_inode jinode; 119 119 120 - unsigned long i_ext_generation; 121 120 struct ext4_ext_cache i_cached_extent; 122 121 /* 123 122 * File creation time. Its function is same as that of
-2
fs/ext4/extents.c
··· 1621 1621 ext4_ext_drop_refs(npath); 1622 1622 kfree(npath); 1623 1623 } 1624 - ext4_ext_tree_changed(inode); 1625 1624 ext4_ext_invalidate_cache(inode); 1626 1625 return err; 1627 1626 } ··· 2231 2232 } 2232 2233 } 2233 2234 out: 2234 - ext4_ext_tree_changed(inode); 2235 2235 ext4_ext_drop_refs(path); 2236 2236 kfree(path); 2237 2237 ext4_journal_stop(handle);