From: Zheng Liu Date: Wed, 19 Sep 2012 18:45:51 +0000 (-0400) Subject: ext4: initialize extent status tree X-Git-Tag: next-20120925~103^2~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4ecd1ad8f0b85bb9291f33b2cec2ef9f2e6b2fa1;p=karo-tx-linux.git ext4: initialize extent status tree Let ext4 initialize extent status tree of an inode. Signed-off-by: Yongqiang Yang Signed-off-by: Allison Henderson Signed-off-by: Zheng Liu Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/super.c b/fs/ext4/super.c index e6784b3276be..214e528ef001 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -953,6 +953,7 @@ static struct inode *ext4_alloc_inode(struct super_block *sb) 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); + ext4_es_init_tree(&ei->i_es_tree); ei->i_reserved_data_blocks = 0; ei->i_reserved_meta_blocks = 0; ei->i_allocated_meta_blocks = 0;