btrfs: move transaction aborts to the error site in add_block_group_free_space()
authorDavid Sterba <dsterba@suse.com>
Sat, 17 May 2025 19:03:57 +0000 (21:03 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:50:34 +0000 (23:50 +0200)
commitb63c8c1ede4407835cb8c8bed2014d96619389f3
tree6134faf42d1ac1fdda7818b3d32291d5b082d60c
parent0b10f3dd13cbbff4965732af86e86a0eb1082dd8
btrfs: move transaction aborts to the error site in add_block_group_free_space()

Transaction aborts should be done next to the place the error happens,
which was not done in add_block_group_free_space().

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-tree.c