]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: qgroup: return correct error when deleting qgroup relation item
authorFilipe Manana <fdmanana@suse.com>
Tue, 20 Jan 2026 19:35:23 +0000 (19:35 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:56:20 +0000 (07:56 +0100)
commit51b1fcf71c88c3c89e7dcf07869c5de837b1f428
tree6caaff16b3d0c7eac9e94f27b547d1b4e08d3b45
parent8ad2f2edc82b8ffde54eab36a677cfb3be2236e1
btrfs: qgroup: return correct error when deleting qgroup relation item

If we fail to delete the second qgroup relation item, we end up returning
success or -ENOENT in case the first item does not exist, instead of
returning the error from the second item deletion.

Fixes: 73798c465b66 ("btrfs: qgroup: Try our best to delete qgroup relations")
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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/qgroup.c