Message ID | CAL3q7H6cPZ5C383ok6ay4i76qWLDsJrOupxLXKAMRiqjLXFiDw@mail.gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 9f96042..627ac3b 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -10022,7 +10022,8 @@ void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info) spin_lock(&block_group->lock); if (block_group->reserved || btrfs_block_group_used(&block_group->item) || - block_group->ro) { + block_group->ro || + lock_group->list.next == block_group->list.prev) { /* * We want to bail if we made new allocations or have