diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-26 16:00:06 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-26 16:00:06 -0400 |
commit | dee26a9f7aab7ffe1193cd1415b23a69426acc9f (patch) | |
tree | 7271c85340349817b92647d8882247478192d1bb /fs/btrfs/extent-tree.c | |
parent | 4730a4bc5bf3861d2cb40999374b3ac0ee2a1e0d (diff) | |
download | blackbird-op-linux-dee26a9f7aab7ffe1193cd1415b23a69426acc9f.tar.gz blackbird-op-linux-dee26a9f7aab7ffe1193cd1415b23a69426acc9f.zip |
btrfs_get_block, file read/write
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
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: * * returns 0 if everything worked, non-zero otherwise. */ -static int alloc_extent(struct btrfs_trans_handle *trans, struct btrfs_root +int btrfs_alloc_extent(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 num_blocks, u64 search_start, u64 search_end, u64 owner, struct btrfs_key *ins) { @@ -458,7 +458,7 @@ struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans, int ret; struct buffer_head *buf; - ret = alloc_extent(trans, root, 1, 0, (unsigned long)-1, + ret = btrfs_alloc_extent(trans, root, 1, 0, (unsigned long)-1, btrfs_header_parentid(btrfs_buffer_header(root->node)), &ins); if (ret) { BUG(); |