]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Sterba <dsterba@suse.com>
Fri, 13 Dec 2019 13:10:44 +0000 (14:10 +0100)
commit6c08f1bdeb5d4c9404e7dde35e6cc8991d00b958
tree9a610b18e72bd0632b96371440b9b838df7fb768
parent004a536ab9f1bada20a50c66400cef01fe33dc00
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