diff options
author | David Sterba <dsterba@suse.com> | 2015-11-10 18:54:03 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-07 15:20:55 +0100 |
commit | 8546b570511f428838129c00e701eda481cd7c13 (patch) | |
tree | bf8087d889e778e484afb12af3ee82edd5220e28 /fs/btrfs/transaction.h | |
parent | b0c0ea6338d5018e02d27c5315084fb1a5d099f6 (diff) | |
download | op-kernel-dev-8546b570511f428838129c00e701eda481cd7c13.zip op-kernel-dev-8546b570511f428838129c00e701eda481cd7c13.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h index b6f9a3c..72be51f 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; |