Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299801
b: refs/heads/master
c: 871383b
h: refs/heads/master
i:
  299799: fb9388b
v: v3
  • Loading branch information
David Sterba committed Apr 18, 2012
1 parent bd05ff3 commit 9d6b5cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 8d082fb727ac11930ea20bf1612e334ea7c2b697
refs/heads/master: 871383be592ba7e819d27556591e315a0df38cee
6 changes: 5 additions & 1 deletion trunk/fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ static noinline int join_transaction(struct btrfs_root *root, int nofail)

cur_trans = root->fs_info->running_transaction;
if (cur_trans) {
if (cur_trans->aborted)
if (cur_trans->aborted) {
spin_unlock(&root->fs_info->trans_lock);
return cur_trans->aborted;
}
atomic_inc(&cur_trans->use_count);
atomic_inc(&cur_trans->num_writers);
cur_trans->num_joined++;
Expand Down Expand Up @@ -1400,6 +1402,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
ret = commit_fs_roots(trans, root);
if (ret) {
mutex_unlock(&root->fs_info->tree_log_mutex);
mutex_unlock(&root->fs_info->reloc_mutex);
goto cleanup_transaction;
}

Expand All @@ -1411,6 +1414,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
ret = commit_cowonly_roots(trans, root);
if (ret) {
mutex_unlock(&root->fs_info->tree_log_mutex);
mutex_unlock(&root->fs_info->reloc_mutex);
goto cleanup_transaction;
}

Expand Down

0 comments on commit 9d6b5cd

Please sign in to comment.