Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253085
b: refs/heads/master
c: 589d8ad
h: refs/heads/master
i:
  253083: a5b90d9
v: v3
  • Loading branch information
Josef Bacik committed May 23, 2011
1 parent 4b43f15 commit 25c4cf1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 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: d82a6f1d7e8b61ed5996334d0db66651bb43641d
refs/heads/master: 589d8ade83f07c0f11c8191c0ca309f34d7a2c14
19 changes: 11 additions & 8 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,15 +378,18 @@ static int caching_kthread(void *data)
if (ret)
break;

caching_ctl->progress = last;
btrfs_release_path(extent_root, path);
up_read(&fs_info->extent_commit_sem);
mutex_unlock(&caching_ctl->mutex);
if (btrfs_transaction_in_commit(fs_info))
schedule_timeout(1);
else
if (need_resched() ||
btrfs_next_leaf(extent_root, path)) {
caching_ctl->progress = last;
btrfs_release_path(extent_root, path);
up_read(&fs_info->extent_commit_sem);
mutex_unlock(&caching_ctl->mutex);
cond_resched();
goto again;
goto again;
}
leaf = path->nodes[0];
nritems = btrfs_header_nritems(leaf);
continue;
}

if (key.objectid < block_group->key.objectid) {
Expand Down

0 comments on commit 25c4cf1

Please sign in to comment.