Re: [PATCH] btrfs: Handle error from btrfs_uuid_tree_rem call in _btrfs_ioctl_set_received_subvol

2018-03-14 Thread David Sterba
On Mon, Mar 12, 2018 at 02:48:09PM +0200, Nikolay Borisov wrote: > 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. > >

[PATCH] btrfs: Handle error from btrfs_uuid_tree_rem call in _btrfs_ioctl_set_received_subvol

2018-03-12 Thread Nikolay Borisov
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")