diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index d375fc04a065..100e409e9053 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -8066,6 +8066,13 @@ out: | |||
8066 | return ret; | 8066 | return ret; |
8067 | } | 8067 | } |
8068 | 8068 | ||
8069 | int btrfs_force_chunk_alloc(struct btrfs_trans_handle *trans, | ||
8070 | struct btrfs_root *root, u64 type) | ||
8071 | { | ||
8072 | u64 alloc_flags = get_alloc_profile(root, type); | ||
8073 | return do_chunk_alloc(trans, root, 2 * 1024 * 1024, alloc_flags, 1); | ||
8074 | } | ||
8075 | |||
8069 | /* | 8076 | /* |
8070 | * helper to account the unused space of all the readonly block group in the | 8077 | * helper to account the unused space of all the readonly block group in the |
8071 | * list. takes mirrors into account. | 8078 | * list. takes mirrors into account. |