diff options
author | Guo Chao <yan@linux.vnet.ibm.com> | 2012-12-10 14:06:04 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-12-10 14:06:04 -0500 |
commit | a789f49c9272e81f4f52487e94820182d0a2d2ff (patch) | |
tree | bcd9f5b9810c73392b98529b3733af06752808f6 /fs | |
parent | 64744e03c6871e5e4678478bab1b8c3ba6cca395 (diff) |
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 <yan@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/super.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) | |||
939 | return NULL; | 939 | return NULL; |
940 | 940 | ||
941 | ei->vfs_inode.i_version = 1; | 941 | ei->vfs_inode.i_version = 1; |
942 | ei->vfs_inode.i_data.writeback_index = 0; | ||
943 | memset(&ei->i_cached_extent, 0, sizeof(struct ext4_ext_cache)); | 942 | memset(&ei->i_cached_extent, 0, sizeof(struct ext4_ext_cache)); |
944 | INIT_LIST_HEAD(&ei->i_prealloc_list); | 943 | INIT_LIST_HEAD(&ei->i_prealloc_list); |
945 | spin_lock_init(&ei->i_prealloc_lock); | 944 | spin_lock_init(&ei->i_prealloc_lock); |