]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
btrfs: abort transaction on failure to update root in the received subvol ioctl
authorFilipe Manana <fdmanana@suse.com>
Fri, 27 Feb 2026 00:02:33 +0000 (00:02 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Mar 2026 16:03:59 +0000 (17:03 +0100)
commit0f475ee0ebce5c9492b260027cd95270191675fa
tree8a1155dcb5f8e87fbbbfd3b511112f90d43fc032
parent87f2c46003fce4d739138aab4af1942b1afdadac
btrfs: abort transaction on failure to update root in the received subvol ioctl

If we failed to update the root we don't abort the transaction, which is
wrong since we already used the transaction to remove an item from the
uuid tree.

Fixes: dd5f9615fc5c ("Btrfs: maintain subvolume items in the UUID tree")
CC: stable@vger.kernel.org # 3.12+
Reviewed-by: Anand Jain <asj@kernel.org>
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/ioctl.c