]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: remove BUG_ON() at btrfs_destroy_delayed_refs()
authorFilipe Manana <fdmanana@suse.com>
Thu, 17 Oct 2024 14:07:45 +0000 (15:07 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:19 +0000 (14:34 +0100)
commit00f529661baaae79dc9de79f9273324b9e1f3542
treeb5704bd0d782cf77b6451502715f356a93fec88c
parent1d16c2761bcc412ae4d9fb9fd9934cd426814191
btrfs: remove BUG_ON() at btrfs_destroy_delayed_refs()

At btrfs_destroy_delayed_refs() it's unexpected to not find the block
group to which a delayed reference's extent belongs to, so we have this
BUG_ON(), not just because it's highly unexpected but also because we
don't know what to do there.

Since we are in the transaction abort path, there's nothing we can do
other than proceed and cleanup all used resources we can. So remove
the BUG_ON() and deal with a missing block group by logging an error
message and continuing to cleanup all we can related to the current
delayed ref head and moving to other delayed refs.

Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c