]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: avoid transaction commit on error in del_balance_item()
authorFilipe Manana <fdmanana@suse.com>
Tue, 16 Dec 2025 15:51:47 +0000 (15:51 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:49:10 +0000 (07:49 +0100)
commitcb73493cae906a7d6668b0e8077eb3a4ef0b2926
treecada5a6b3dc3b2defe5973d7de4dd275fb96059c
parent6d0f25cdd8e3248ee6e4899722d610083fe5aa6d
btrfs: avoid transaction commit on error in del_balance_item()

There's no point in committing the transaction if we failed to delete the
item, since we haven't done anything before. Also stop using two variables
for tracking the return value and use only 'ret'.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
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/volumes.c