]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: preallocate path for snapshot creation at ioctl time
authorDavid Sterba <dsterba@suse.com>
Tue, 10 Nov 2015 17:54:03 +0000 (18:54 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jan 2016 14:20:55 +0000 (15:20 +0100)
commitab6849debac316abda2faf197f052772a7aba74c
treebf8087d889e778e484afb12af3ee82edd5220e28
parent4227564d44e13748395c3f9afa9c24eb470e6013
btrfs: preallocate path for snapshot creation at ioctl time

We can also preallocate btrfs_path that's used during pending snapshot
creation and avoid another late ENOMEM failure.

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