From patchwork Tue Mar 12 05:06:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: fanchaoting X-Patchwork-Id: 226778 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 81C0E2C0094 for ; Tue, 12 Mar 2013 16:06:35 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752813Ab3CLFGe (ORCPT ); Tue, 12 Mar 2013 01:06:34 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:20551 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751825Ab3CLFGe (ORCPT ); Tue, 12 Mar 2013 01:06:34 -0400 X-IronPort-AV: E=Sophos;i="4.84,827,1355068800"; d="scan'208";a="6856288" Received: from unknown (HELO tang.cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 12 Mar 2013 13:04:07 +0800 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id r2C56WqT006714; Tue, 12 Mar 2013 13:06:32 +0800 Received: from [127.0.0.1] ([10.167.233.142]) by fnstmail02.fnst.cn.fujitsu.com (Lotus Domino Release 8.5.3) with ESMTP id 2013031213051964-783494 ; Tue, 12 Mar 2013 13:05:19 +0800 Message-ID: <513EB7DD.3020103@cn.fujitsu.com> Date: Tue, 12 Mar 2013 13:06:37 +0800 From: fanchaoting User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: jack@suse.cz CC: tyhicks@canonical.com, linux-ext4@vger.kernel.org, wangshilong1991@gmail.com Subject: [PATCH] Ext2: do not mark_inode_dirty to avoid BUG_ON X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/03/12 13:05:19, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/03/12 13:05:20, Serialize complete at 2013/03/12 13:05:20 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Wang Shilong commit 8e3dffc651cb668e1ff4d8b89cc1c3dde7540d3b leads into a regression that casue BUG_ON when unlinking inode. Reported-by: tyhicks@canonical.com Signed-off-by: Wang Shilong --- fs/ext2/balloc.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c index 9f9992b..06d82fc 100644 --- a/fs/ext2/balloc.c +++ b/fs/ext2/balloc.c @@ -562,7 +562,6 @@ error_return: if (freed) { percpu_counter_add(&sbi->s_freeblocks_counter, freed); dquot_free_block_nodirty(inode, freed); - mark_inode_dirty(inode); } }