Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275858
b: refs/heads/master
c: 24a7031
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Nov 21, 2011
1 parent 003bb2c commit 0c2e305
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 4d479cf010d56ec9c54f3099992d039918f1296b
refs/heads/master: 24a70313969fc3fc440216b40babdb42564acff3
8 changes: 7 additions & 1 deletion trunk/fs/btrfs/free-space-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,13 @@ int btrfs_remove_free_space(struct btrfs_block_group_cache *block_group,
info = tree_search_offset(ctl, offset_to_bitmap(ctl, offset),
1, 0);
if (!info) {
WARN_ON(1);
/* the tree logging code might be calling us before we
* have fully loaded the free space rbtree for this
* block group. So it is possible the entry won't
* be in the rbtree yet at all. The caching code
* will make sure not to put it in the rbtree if
* the logging code has pinned it.
*/
goto out_lock;
}
}
Expand Down

0 comments on commit 0c2e305

Please sign in to comment.