Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262242
b: refs/heads/master
c: b9c8300
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Chris Mason committed Aug 1, 2011
1 parent 871c258 commit 822502b
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 72d63ed6427cf233e2b352c0b80c3e5c5a444986
refs/heads/master: b9c8300c2ac354d850159f301d5b3ead13854cdd
6 changes: 2 additions & 4 deletions trunk/fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,10 @@ struct btrfs_trans_handle *btrfs_start_ioctl_transaction(struct btrfs_root *root
}

/* wait for a transaction commit to be fully complete */
static noinline int wait_for_commit(struct btrfs_root *root,
static noinline void wait_for_commit(struct btrfs_root *root,
struct btrfs_transaction *commit)
{
wait_event(commit->commit_wait, commit->commit_done);
return 0;
}

int btrfs_wait_for_commit(struct btrfs_root *root, u64 transid)
Expand Down Expand Up @@ -1189,8 +1188,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
atomic_inc(&cur_trans->use_count);
btrfs_end_transaction(trans, root);

ret = wait_for_commit(root, cur_trans);
BUG_ON(ret);
wait_for_commit(root, cur_trans);

put_transaction(cur_trans);

Expand Down

0 comments on commit 822502b

Please sign in to comment.