aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-11-10 18:54:03 +0100
committerDavid Sterba <dsterba@suse.com>2016-01-07 15:20:55 +0100
commit8546b570511f428838129c00e701eda481cd7c13 (patch)
treebf8087d889e778e484afb12af3ee82edd5220e28 /fs/btrfs/transaction.h
parentbtrfs: allocate root item at snapshot ioctl time (diff)
downloadlinux-dev-8546b570511f428838129c00e701eda481cd7c13.tar.xz
linux-dev-8546b570511f428838129c00e701eda481cd7c13.zip
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>
Diffstat (limited to 'fs/btrfs/transaction.h')
-rw-r--r--fs/btrfs/transaction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h
index b6f9a3c94468..72be51f7ca2f 100644
--- a/fs/btrfs/transaction.h
+++ b/fs/btrfs/transaction.h
@@ -140,6 +140,7 @@ struct btrfs_pending_snapshot {
struct btrfs_root_item *root_item;
struct btrfs_root *snap;
struct btrfs_qgroup_inherit *inherit;
+ struct btrfs_path *path;
/* block reservation for the operation */
struct btrfs_block_rsv block_rsv;
u64 qgroup_reserved;