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)
commit8546b570511f428838129c00e701eda481cd7c13
treebf8087d889e778e484afb12af3ee82edd5220e28
parentb0c0ea6338d5018e02d27c5315084fb1a5d099f6
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