From patchwork Wed Apr 18 07:07:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allison Henderson X-Patchwork-Id: 153402 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 83D32B6FBC for ; Wed, 18 Apr 2012 17:06:13 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751125Ab2DRHGL (ORCPT ); Wed, 18 Apr 2012 03:06:11 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:60288 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750944Ab2DRHGK (ORCPT ); Wed, 18 Apr 2012 03:06:10 -0400 Received: from /spool/local by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Apr 2012 01:06:09 -0600 Received: from d03dlp01.boulder.ibm.com (9.17.202.177) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 18 Apr 2012 01:06:08 -0600 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 406BD1FF004A for ; Wed, 18 Apr 2012 01:06:06 -0600 (MDT) Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q3I767N5113938 for ; Wed, 18 Apr 2012 01:06:07 -0600 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q3I76cMp005454 for ; Wed, 18 Apr 2012 01:06:38 -0600 Received: from elm3c80.beaverton.ibm.com (elm3c80.beaverton.ibm.com [9.47.69.80]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q3I76bO2005311; Wed, 18 Apr 2012 01:06:38 -0600 From: Allison Henderson To: linux-ext4@vger.kernel.org Cc: Allison Henderson , Yongqiang Yang Subject: [PATCH 3/6] ext4: initialize status extent tree Date: Wed, 18 Apr 2012 00:07:15 -0700 Message-Id: <1334732838-25102-4-git-send-email-achender@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1334732838-25102-1-git-send-email-achender@linux.vnet.ibm.com> References: <1334732838-25102-1-git-send-email-achender@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12041807-3352-0000-0000-000004191C56 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Let ext4 initialize status extent tree of a inode. Signed-off-by: Yongqiang Yang Signed-off-by: Allison Henderson --- :100644 100644 db2cd3f... da223a1... M fs/ext4/super.c 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 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;