Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361006
b: refs/heads/master
c: 66b6135
h: refs/heads/master
v: v3
  • Loading branch information
Liu Bo authored and Josef Bacik committed Mar 4, 2013
1 parent 945d75f commit 3f33872
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f788c58194e4ccc5b3ab23f872c5e18542335e4
refs/heads/master: 66b6135b7cf741f6f44ba938b27583ea3b83bd12
7 changes: 7 additions & 0 deletions trunk/fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,13 @@ static void cleanup_transaction(struct btrfs_trans_handle *trans,
btrfs_abort_transaction(trans, root, err);

spin_lock(&root->fs_info->trans_lock);

if (list_empty(&cur_trans->list)) {
spin_unlock(&root->fs_info->trans_lock);
btrfs_end_transaction(trans, root);
return;
}

list_del_init(&cur_trans->list);
if (cur_trans == root->fs_info->running_transaction) {
root->fs_info->trans_no_join = 1;
Expand Down

0 comments on commit 3f33872

Please sign in to comment.