Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189472
b: refs/heads/master
c: b5cb160
h: refs/heads/master
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Apr 5, 2010
1 parent ab240d5 commit d59f5ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 28ecb60906e86e74e9ad4ac7e0218d8631e73a94
refs/heads/master: b5cb160084fad438c513d0952849e597ffe9e3d9
9 changes: 4 additions & 5 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2676,6 +2676,8 @@ static int update_space_info(struct btrfs_fs_info *info, u64 flags,

INIT_LIST_HEAD(&found->block_groups);
init_rwsem(&found->groups_sem);
init_waitqueue_head(&found->flush_wait);
init_waitqueue_head(&found->allocate_wait);
spin_lock_init(&found->lock);
found->flags = flags;
found->total_bytes = total_bytes;
Expand Down Expand Up @@ -2944,12 +2946,10 @@ static void flush_delalloc(struct btrfs_root *root,

spin_lock(&info->lock);

if (!info->flushing) {
if (!info->flushing)
info->flushing = 1;
init_waitqueue_head(&info->flush_wait);
} else {
else
wait = true;
}

spin_unlock(&info->lock);

Expand Down Expand Up @@ -3011,7 +3011,6 @@ static int maybe_allocate_chunk(struct btrfs_root *root,
if (!info->allocating_chunk) {
info->force_alloc = 1;
info->allocating_chunk = 1;
init_waitqueue_head(&info->allocate_wait);
} else {
wait = true;
}
Expand Down

0 comments on commit d59f5ce

Please sign in to comment.