btrfs: abort transaction after failed inode updates in create_subvol
authorJosef Bacik <josef@toxicpanda.com>
Fri, 6 Dec 2019 14:37:15 +0000 (09:37 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 13 Dec 2019 13:10:44 +0000 (14:10 +0100)
commitc7e54b5102bf3614cadb9ca32d7be73bad6cecf0
tree9a610b18e72bd0632b96371440b9b838df7fb768
parent147271e35ba267506dde6550f58ccf8d287db3ef
btrfs: abort transaction after failed inode updates in create_subvol

We can just abort the transaction here, and in fact do that for every
other failure in this function except these two cases.

CC: stable@vger.kernel.org # 4.4+
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
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/ioctl.c