Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a789f49c authored by Guo Chao's avatar Guo Chao Committed by Theodore Ts'o
Browse files

ext4: remove redundant code in ext4_alloc_inode()



inode_init_always() will initialize inode->i_data.writeback_index
anyway, no need to do this in ext4_alloc_inode().

Signed-off-by: default avatarGuo Chao <yan@linux.vnet.ibm.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: default avatarLukas Czerner <lczerner@redhat.com>
parent 64744e03
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);