diff options
author | Zheng Liu <wenqing.lz@taobao.com> | 2012-11-08 21:57:30 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-11-08 21:57:30 -0500 |
commit | 9a26b66175e1c221f39bbe09e2e1d0a31a14ba6d (patch) | |
tree | 1a1b49ada12832fb3e36d24e9c9ede37ea8a99a7 /fs | |
parent | 654598bef3731c9ae9b068ac35e6b69674c02841 (diff) | |
download | op-kernel-dev-9a26b66175e1c221f39bbe09e2e1d0a31a14ba6d.zip op-kernel-dev-9a26b66175e1c221f39bbe09e2e1d0a31a14ba6d.tar.gz |
ext4: initialize extent status tree
Let ext4 initialize extent status tree of an inode.
Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com>
Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 18e89fa..6791d09 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -943,6 +943,8 @@ 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); + rwlock_init(&ei->i_es_lock); ei->i_reserved_data_blocks = 0; ei->i_reserved_meta_blocks = 0; ei->i_allocated_meta_blocks = 0; |