]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jan 2020 12:40:15 +0000 (13:40 +0100)
commite8da91ee3cb17f050e50599a34c43dee80b14a2f
tree5bb718cfe03cd1cc08c5ea7e308530f62dee1f99
parentfecbec3b86f21f7d7c71fa3525a204c415554a39
btrfs: abort transaction after failed inode updates in create_subvol

[ Upstream commit c7e54b5102bf3614cadb9ca32d7be73bad6cecf0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/ioctl.c