From patchwork Mon May 17 19:36:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Mason X-Patchwork-Id: 100206 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4HJckhf031775 for ; Mon, 17 May 2010 19:38:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755106Ab0EQTin (ORCPT ); Mon, 17 May 2010 15:38:43 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:47012 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751930Ab0EQTil (ORCPT ); Mon, 17 May 2010 15:38:41 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HJcbbo020371 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 May 2010 19:38:38 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HFwxfT016970; Mon, 17 May 2010 19:38:36 GMT Received: from abhmt007.oracle.com by acsmt353.oracle.com with ESMTP id 247951031274125014; Mon, 17 May 2010 12:36:54 -0700 Received: from localhost (/66.66.148.185) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 May 2010 12:36:54 -0700 Date: Mon, 17 May 2010 15:36:52 -0400 From: Chris Mason To: Jakob Unterwurzacher Cc: linux-btrfs@vger.kernel.org Subject: Re: Rename+crash behaviour of btrfs - nearly ext3! Message-ID: <20100517193652.GC8635@think> Mail-Followup-To: Chris Mason , Jakob Unterwurzacher , linux-btrfs@vger.kernel.org References: <4BF18525.8080904@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4BF18525.8080904@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Auth-Type: Internal IP X-Source-IP: acsinet15.oracle.com [141.146.126.227] X-CT-RefId: str=0001.0A090208.4BF19B3F.0185:SCFMA922111,ss=1,fgs=0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 17 May 2010 19:38:46 +0000 (UTC) diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index c9f1020..9370a71 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c @@ -806,7 +806,7 @@ int btrfs_add_ordered_operation(struct btrfs_trans_handle *trans, * if this file hasn't been changed since the last transaction * commit, we can safely return without doing anything */ - if (last_mod < root->fs_info->last_trans_committed) + if (0 && last_mod < root->fs_info->last_trans_committed) return 0; /*