diff options
author | Eric Whitney <enwlinux@gmail.com> | 2017-07-30 22:30:11 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-07-30 22:30:11 -0400 |
commit | a627b0a7c15ee4d2c87a86d5be5c8167382e8d0d (patch) | |
tree | 3da42bb94503adce361b00d8dae833c106f8b89a /fs/ext4/super.c | |
parent | 1e21196c8e3e210cbef130e23e40c4adc3d9ce10 (diff) | |
download | linux-a627b0a7c15ee4d2c87a86d5be5c8167382e8d0d.tar.gz linux-a627b0a7c15ee4d2c87a86d5be5c8167382e8d0d.tar.bz2 linux-a627b0a7c15ee4d2c87a86d5be5c8167382e8d0d.zip |
ext4: remove unused metadata accounting variables
Two variables in ext4_inode_info, i_reserved_meta_blocks and
i_allocated_meta_blocks, are unused. Removing them saves a little
memory per in-memory inode and cleans up clutter in several tracepoints.
Adjust tracepoint output from ext4_alloc_da_blocks() for consistency
and fix a typo and whitespace near these changes.
Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 0886fe82e9c4..d61a70e2193a 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -978,8 +978,6 @@ static struct inode *ext4_alloc_inode(struct super_block *sb) ei->i_es_shk_nr = 0; ei->i_es_shrink_lblk = 0; ei->i_reserved_data_blocks = 0; - ei->i_reserved_meta_blocks = 0; - ei->i_allocated_meta_blocks = 0; ei->i_da_metadata_calc_len = 0; ei->i_da_metadata_calc_last_lblock = 0; spin_lock_init(&(ei->i_block_reservation_lock)); |