From patchwork Mon Mar 15 17:26:31 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sage Weil X-Patchwork-Id: 86004 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 o2FHRMSO000434 for ; Mon, 15 Mar 2010 17:27:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965575Ab0COR1V (ORCPT ); Mon, 15 Mar 2010 13:27:21 -0400 Received: from cobra.newdream.net ([66.33.216.30]:46049 "EHLO cobra.newdream.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965510Ab0COR1U (ORCPT ); Mon, 15 Mar 2010 13:27:20 -0400 Received: from localhost.localdomain (dsl092-035-022.lax1.dsl.speakeasy.net [66.92.35.22]) by cobra.newdream.net (Postfix) with ESMTPA id EF7F1BC855; Mon, 15 Mar 2010 10:28:07 -0700 (PDT) From: Sage Weil To: linux-btrfs@vger.kernel.org Cc: Sage Weil Subject: [PATCH 1/2] Btrfs: remove bad fsync transaction check Date: Mon, 15 Mar 2010 10:26:31 -0700 Message-Id: <1268673992-5250-1-git-send-email-sage@newdream.net> X-Mailer: git-send-email 1.7.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, 15 Mar 2010 17:27:22 +0000 (UTC) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index d146dde..2e6404f 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1097,12 +1097,6 @@ int btrfs_sync_file(struct file *file, struct dentry *dentry, int datasync) } mutex_unlock(&root->fs_info->trans_mutex); - /* - * ok we haven't committed the transaction yet, lets do a commit - */ - if (file && file->private_data) - btrfs_ioctl_trans_end(file); - trans = btrfs_start_transaction(root, 1); if (!trans) { ret = -ENOMEM;