]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: Handle error from btrfs_uuid_tree_rem call in _btrfs_ioctl_set_received_subvol
authorNikolay Borisov <nborisov@suse.com>
Mon, 12 Mar 2018 12:48:09 +0000 (14:48 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Mar 2018 23:26:56 +0000 (01:26 +0200)
commitd87ff75863e92a500538ab53318c5740f196631e
treebd59a768bc0879b6dc78e42a1d2a2aaa1bf1ecb2
parent776c4a7ce86f4c95d9fc6307d44a4e9e1a740e40
btrfs: Handle error from btrfs_uuid_tree_rem call in _btrfs_ioctl_set_received_subvol

As with every function which deals with modifying the btree
btrfs_uuid_tree_rem can fail for any number of reasons (ie. EIO/ENOMEM).
Handle return error value from this function gracefully by aborting the
transaction.

Fixes: dd5f9615fc5c ("Btrfs: maintain subvolume items in the UUID tree")
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c