aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index b14104276eea..82f6e9eed1d0 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -403,7 +403,7 @@ error:
403 * 403 *
404 * returns 0 if everything worked, non-zero otherwise. 404 * returns 0 if everything worked, non-zero otherwise.
405 */ 405 */
406static int alloc_extent(struct btrfs_trans_handle *trans, struct btrfs_root 406int btrfs_alloc_extent(struct btrfs_trans_handle *trans, struct btrfs_root
407 *root, u64 num_blocks, u64 search_start, u64 407 *root, u64 num_blocks, u64 search_start, u64
408 search_end, u64 owner, struct btrfs_key *ins) 408 search_end, u64 owner, struct btrfs_key *ins)
409{ 409{
@@ -458,7 +458,7 @@ struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans,
458 int ret; 458 int ret;
459 struct buffer_head *buf; 459 struct buffer_head *buf;
460 460
461 ret = alloc_extent(trans, root, 1, 0, (unsigned long)-1, 461 ret = btrfs_alloc_extent(trans, root, 1, 0, (unsigned long)-1,
462 btrfs_header_parentid(btrfs_buffer_header(root->node)), &ins); 462 btrfs_header_parentid(btrfs_buffer_header(root->node)), &ins);
463 if (ret) { 463 if (ret) {
464 BUG(); 464 BUG();