]> 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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 28 Apr 2020 18:02:59 +0000 (19:02 +0100)
commit5fd90a8e77d5c4b02d075547b44fe12f9a1977bf
tree4a67ff67283ad96b8fec3363fab2b1a08397d238
parent28f515f78cccc7301670b3f33eccc43916d121d8
btrfs: abort transaction after failed inode updates in create_subvol

commit c7e54b5102bf3614cadb9ca32d7be73bad6cecf0 upstream.

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

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>
[bwh: Backported to 3.16:
 - Add root as second argument to btrfs_abort_transaction()
 - Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/btrfs/ioctl.c