diff mbox

[1/2] Btrfs: remove bad fsync transaction check

Message ID 1268673992-5250-1-git-send-email-sage@newdream.net (mailing list archive)
State New, archived
Headers show

Commit Message

Sage Weil March 15, 2010, 5:26 p.m. UTC
None
diff mbox

Patch

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;