Patchwork [V3,3/6] ext4: initialize delayed extent tree

login
register
mail settings
Submitter Yongqiang Yang
Date Oct. 31, 2011, 12:55 a.m.
Message ID <1320022547-2284-4-git-send-email-xiaoqiangnk@gmail.com>
Download mbox | patch
Permalink /patch/122707/
State New
Headers show

Comments

Yongqiang Yang - Oct. 31, 2011, 12:55 a.m.
Let ext4 initialize delayed extent tree of a inode.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
---
 fs/ext4/super.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 9953d80..9515e5f 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -899,6 +899,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_de_init_tree(&ei->i_de_tree);
 	ei->i_reserved_data_blocks = 0;
 	ei->i_reserved_meta_blocks = 0;
 	ei->i_allocated_meta_blocks = 0;