Commit b0e4e15
btrfs-progs: use btrfs_lookup_block_group() in check_free_space_tree()
check_free_space_tree() is intended to check that the free-space tree
doesn't contain any entries which don't correspond to a block group.
Unfortunately it calls btrfs_lookup_first_block_group(), which only
returns NULL if the search offset is larger than the start of any block
group.
Fix check_free_space_tree() to use btrfs_lookup_block_group() as was
obviously intended, and fix fsck-tests/054-orphan-directory to get rid
of its spurious free-space entries that this now diagnoses.
Signed-off-by: Mark Harmstone <mark@harmstone.com>1 parent 97d22be commit b0e4e15
File tree
3 files changed
+1
-1
lines changed- common
- tests/fsck-tests
- 054-orphan-directory
- 058-bad-free-space-tree-entry
3 files changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
Binary file not shown.
Binary file not shown.
0 commit comments