Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360484
b: refs/heads/master
c: a81cb9a
h: refs/heads/master
v: v3
  • Loading branch information
Alexandre Oliva authored and Josef Bacik committed Feb 26, 2013
1 parent 3398a32 commit 47ed362
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: ca60ebfa303ca6d9f3cad5028c10f0a17d571a4c
refs/heads/master: a81cb9a2d939676dee6911993a37fa7e818ab72e
6 changes: 3 additions & 3 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -3715,19 +3715,19 @@ static int do_chunk_alloc(struct btrfs_trans_handle *trans,

ret = btrfs_alloc_chunk(trans, extent_root, flags);
trans->allocating_chunk = false;
if (ret < 0 && ret != -ENOSPC)
goto out;

spin_lock(&space_info->lock);
if (ret < 0 && ret != -ENOSPC)
goto out;
if (ret)
space_info->full = 1;
else
ret = 1;

space_info->force_alloc = CHUNK_ALLOC_NO_FORCE;
out:
space_info->chunk_alloc = 0;
spin_unlock(&space_info->lock);
out:
mutex_unlock(&fs_info->chunk_mutex);
return ret;
}
Expand Down

0 comments on commit 47ed362

Please sign in to comment.