Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322371
b: refs/heads/master
c: bd7de2c
h: refs/heads/master
i:
  322369: c614044
  322367: de20621
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Aug 28, 2012
1 parent d7923b2 commit 098c252
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ee0844d6427e7338e0aba748f62b62d07ea2ed0
refs/heads/master: bd7de2c9a449e26a5493d918618eb20ae60d56bd
13 changes: 9 additions & 4 deletions trunk/fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,6 @@ int btrfs_sync_fs(struct super_block *sb, int wait)
struct btrfs_trans_handle *trans;
struct btrfs_fs_info *fs_info = btrfs_sb(sb);
struct btrfs_root *root = fs_info->tree_root;
int ret;

trace_btrfs_sync_fs(wait);

Expand All @@ -824,11 +823,17 @@ int btrfs_sync_fs(struct super_block *sb, int wait)

btrfs_wait_ordered_extents(root, 0, 0);

trans = btrfs_start_transaction(root, 0);
spin_lock(&fs_info->trans_lock);
if (!fs_info->running_transaction) {
spin_unlock(&fs_info->trans_lock);
return 0;
}
spin_unlock(&fs_info->trans_lock);

trans = btrfs_join_transaction(root);
if (IS_ERR(trans))
return PTR_ERR(trans);
ret = btrfs_commit_transaction(trans, root);
return ret;
return btrfs_commit_transaction(trans, root);
}

static int btrfs_show_options(struct seq_file *seq, struct dentry *dentry)
Expand Down

0 comments on commit 098c252

Please sign in to comment.