]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: do an allocation earlier during snapshot creation
authorDavid Sterba <dsterba@suse.com>
Tue, 10 Nov 2015 17:53:56 +0000 (18:53 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jan 2016 14:20:54 +0000 (15:20 +0100)
commitbf0b401014448735546728fb08e7e4688132a2f1
tree2216e2f064209ade5011543d89da9f3dfbb075c8
parentd2ed7e100ac1b10874589ba2dc1378e5eeab8254
btrfs: do an allocation earlier during snapshot creation

We can allocate pending_snapshot earlier and do not have to do cleanup
in case of failure.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c