Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243178
b: refs/heads/master
c: 9f7c43c
h: refs/heads/master
v: v3
  • Loading branch information
liubo authored and root committed Mar 28, 2011
1 parent 4e690e8 commit 13d1f9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2d4e6f6ad2b9f84f568d07dae4bdbc7f48a70ad1
refs/heads/master: 9f7c43c96727a53bea45f7f2549d897f0a6117b8
6 changes: 6 additions & 0 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -8669,6 +8669,12 @@ int btrfs_remove_block_group(struct btrfs_trans_handle *trans,
BUG_ON(!block_group);
BUG_ON(!block_group->ro);

/*
* Free the reserved super bytes from this block group before
* remove it.
*/
free_excluded_extents(root, block_group);

memcpy(&key, &block_group->key, sizeof(key));
if (block_group->flags & (BTRFS_BLOCK_GROUP_DUP |
BTRFS_BLOCK_GROUP_RAID1 |
Expand Down

0 comments on commit 13d1f9c

Please sign in to comment.