From: Guo Chao Date: Mon, 10 Dec 2012 19:06:04 +0000 (-0500) Subject: ext4: remove redundant code in ext4_alloc_inode() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a789f49c9272e81f4f52487e94820182d0a2d2ff;p=linux-beck.git 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: Guo Chao Signed-off-by: "Theodore Ts'o" Reviewed-by: Lukas Czerner --- diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 856206f255aa..c2ea525e85c6 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -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);