Patchwork [3/6] ext4: initialize status extent tree

login
register
mail settings
Submitter Allison Henderson
Date April 18, 2012, 7:07 a.m.
Message ID <1334732838-25102-4-git-send-email-achender@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/153402/
State Superseded
Headers show

Comments

Allison Henderson - April 18, 2012, 7:07 a.m.
Let ext4 initialize status extent tree of a inode.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
---
:100644 100644 db2cd3f... da223a1... M	fs/ext4/super.c
 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 db2cd3f..da223a1 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -898,6 +898,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_se_init_tree(&ei->i_se_tree);
 	ei->i_reserved_data_blocks = 0;
 	ei->i_reserved_meta_blocks = 0;
 	ei->i_allocated_meta_blocks = 0;