btrfs: handle btrfs_record_root_in_trans failure in btrfs_delete_subvolume
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:25:04 +0000 (15:25 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:19 +0000 (17:25 +0200)
commit2731f5186ba8e641515a01a1016b88f09b34777d
tree8da26ccffc1b823dd66db9d0cffd6e4a1151e623
parentb0fec6fd330fe10cb68c137f6b7a17898ee69671
btrfs: handle btrfs_record_root_in_trans failure in btrfs_delete_subvolume

btrfs_record_root_in_trans will return errors in the future, so handle
the error properly in btrfs_delete_subvolume.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c