From patchwork Mon Oct 31 00:55:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongqiang Yang X-Patchwork-Id: 122707 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id BEAEFB6F77 for ; Mon, 31 Oct 2011 14:00:10 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753812Ab1JaDAG (ORCPT ); Sun, 30 Oct 2011 23:00:06 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:58444 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753916Ab1JaDAF (ORCPT ); Sun, 30 Oct 2011 23:00:05 -0400 Received: by mail-iy0-f174.google.com with SMTP id y12so6677937iab.19 for ; Sun, 30 Oct 2011 20:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=/lZm8XR7QWN+ETLSFBb9LtjvO2Z3JLhC7/7WhZnHAhs=; b=cSySlic7dZ1+4gymRy950m+0u4DrwYLOqzZNiv+a3hGFzNDSXGNYcDApEZMGOEtaYt 6xm3pEhX5zNfKIrxoHrfmVsu3r/EhqkW46uZYL8mxGo7wQltvP44HMfQwjTQUurMIOMW Fmc7siw0j2dZj/72cJ8sgo9D9PyAJkQcyyA78= Received: by 10.231.26.201 with SMTP id f9mr4486697ibc.40.1320030004860; Sun, 30 Oct 2011 20:00:04 -0700 (PDT) Received: from localhost.localdomain ([159.226.43.42]) by mx.google.com with ESMTPS id l28sm24419910ibc.3.2011.10.30.20.00.03 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 30 Oct 2011 20:00:04 -0700 (PDT) From: Yongqiang Yang To: tytso@mit.edu Cc: linux-ext4@vger.kernel.org, Yongqiang Yang Subject: [PATCH V3 3/6] ext4: initialize delayed extent tree Date: Mon, 31 Oct 2011 08:55:44 +0800 Message-Id: <1320022547-2284-4-git-send-email-xiaoqiangnk@gmail.com> X-Mailer: git-send-email 1.7.5.1 In-Reply-To: <1320022547-2284-1-git-send-email-xiaoqiangnk@gmail.com> References: <1320022547-2284-1-git-send-email-xiaoqiangnk@gmail.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Let ext4 initialize delayed extent tree of a inode. Signed-off-by: Yongqiang Yang --- 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;