Skip to content

Commit

Permalink
ext4: remove redundant code in ext4_alloc_inode()
Browse files Browse the repository at this point in the history
inode_init_always() will initialize inode->i_data.writeback_index
anyway, no need to do this in ext4_alloc_inode().

Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
  • Loading branch information
Guo Chao authored and Theodore Ts'o committed Dec 10, 2012
1 parent 64744e0 commit a789f49
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,6 @@ static struct inode *ext4_alloc_inode(struct super_block *sb)
return NULL;

ei->vfs_inode.i_version = 1;
ei->vfs_inode.i_data.writeback_index = 0;
memset(&ei->i_cached_extent, 0, sizeof(struct ext4_ext_cache));
INIT_LIST_HEAD(&ei->i_prealloc_list);
spin_lock_init(&ei->i_prealloc_lock);
Expand Down

0 comments on commit a789f49

Please sign in to comment.