From: Yongqiang Yang <xiaoqiangnk@gmail.com>
To: tytso@mit.edu
Cc: linux-ext4@vger.kernel.org, Yongqiang Yang <xiaoqiangnk@gmail.com>
Subject: [PATCH V3 3/6] ext4: initialize delayed extent tree
Date: Mon, 31 Oct 2011 08:55:44 +0800 [thread overview]
Message-ID: <1320022547-2284-4-git-send-email-xiaoqiangnk@gmail.com> (raw)
In-Reply-To: <1320022547-2284-1-git-send-email-xiaoqiangnk@gmail.com>
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(-)
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;
--
1.7.5.1
next prev parent reply other threads:[~2011-10-31 3:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-31 0:55 [PATCH V3 0/6] ext4: add delayed extent tree for ext4 Yongqiang Yang
2011-10-31 0:55 ` [PATCH V3 1/6] ext4: add two structures supporting delayed extent tree Yongqiang Yang
2011-10-31 0:55 ` [PATCH V3 2/6] ext4: add operations on " Yongqiang Yang
2011-10-31 0:55 ` Yongqiang Yang [this message]
2011-10-31 0:55 ` [PATCH V3 4/6] ext4: let ext4 maintian delayed extent trees Yongqiang Yang
2011-10-31 0:55 ` [PATCH V3 5/6] ext4: reimplement fiemap on delayed extent tree Yongqiang Yang
2011-10-31 0:55 ` [PATCH V3 6/6] ext4: reimplement ext4_find_delay_alloc_range " Yongqiang Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1320022547-2284-4-git-send-email-xiaoqiangnk@gmail.com \
--to=xiaoqiangnk@gmail.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).