diff options
-rw-r--r-- | fs/btrfs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 60f7cbe815e9..c86fb5438454 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -1001,9 +1001,9 @@ int btrfs_sync_fs(struct super_block *sb, int wait) | |||
1001 | if (fs_info->pending_changes == 0) | 1001 | if (fs_info->pending_changes == 0) |
1002 | return 0; | 1002 | return 0; |
1003 | trans = btrfs_start_transaction(root, 0); | 1003 | trans = btrfs_start_transaction(root, 0); |
1004 | } else { | ||
1005 | return PTR_ERR(trans); | ||
1006 | } | 1004 | } |
1005 | if (IS_ERR(trans)) | ||
1006 | return PTR_ERR(trans); | ||
1007 | } | 1007 | } |
1008 | return btrfs_commit_transaction(trans, root); | 1008 | return btrfs_commit_transaction(trans, root); |
1009 | } | 1009 | } |