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/ext4/super.c | |
parent | 64744e03c6871e5e4678478bab1b8c3ba6cca395 (diff) | |
download | op-kernel-dev-a789f49c9272e81f4f52487e94820182d0a2d2ff.zip op-kernel-dev-a789f49c9272e81f4f52487e94820182d0a2d2ff.tar.gz |
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/ext4/super.c')
-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 856206f..c2ea525 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); |