Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286930
b: refs/heads/master
c: 6dd70ce
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kara authored and Chris Mason committed Jan 26, 2012
1 parent c44af2b commit 77cd1cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 357b9784b79924a31ccded5d9a0c688f48cc28f2
refs/heads/master: 6dd70ce4eb7429c2ba6dd9fa46f78a0a2a254038
6 changes: 4 additions & 2 deletions trunk/fs/btrfs/tree-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,8 @@ static int wait_log_commit(struct btrfs_trans_handle *trans,

finish_wait(&root->log_commit_wait[index], &wait);
mutex_lock(&root->log_mutex);
} while (root->log_transid < transid + 2 &&
} while (root->fs_info->last_trans_log_full_commit !=
trans->transid && root->log_transid < transid + 2 &&
atomic_read(&root->log_commit[index]));
return 0;
}
Expand All @@ -1966,7 +1967,8 @@ static int wait_for_writer(struct btrfs_trans_handle *trans,
struct btrfs_root *root)
{
DEFINE_WAIT(wait);
while (atomic_read(&root->log_writers)) {
while (root->fs_info->last_trans_log_full_commit !=
trans->transid && atomic_read(&root->log_writers)) {
prepare_to_wait(&root->log_writer_wait,
&wait, TASK_UNINTERRUPTIBLE);
mutex_unlock(&root->log_mutex);
Expand Down

0 comments on commit 77cd1cc

Please sign in to comment.