From: Zheng Liu Date: Wed, 19 Sep 2012 18:45:51 +0000 (-0400) Subject: ext4: initialize extent status tree X-Git-Tag: next-20120921~107^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=aa43282cf3e387af424fb8bdc447aba97e75c557;p=karo-tx-linux.git ext4: initialize extent status tree Let ext4 initialize extent status tree of an inode. Reviewed-by: Yongqiang Yang Reviewed-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;