summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorDavid Sterba2014-06-15 01:54:12 +0200
committerDavid Sterba2014-10-02 17:14:54 +0200
commit4d75f8a9c87b843c8ded15b82b8d137b9724cccc (patch)
treea6ac5d4fee70795507ccdebe83f92b6c28ab2d27 /fs/btrfs/ctree.h
parentbtrfs: remove unused parameter blocksize from btrfs_find_tree_block (diff)
downloadkernel-qcow2-linux-4d75f8a9c87b843c8ded15b82b8d137b9724cccc.tar.gz
kernel-qcow2-linux-4d75f8a9c87b843c8ded15b82b8d137b9724cccc.tar.xz
kernel-qcow2-linux-4d75f8a9c87b843c8ded15b82b8d137b9724cccc.zip
btrfs: remove blocksize from btrfs_alloc_free_block and rename
Rename to btrfs_alloc_tree_block as it fits to the alloc/find/free + _tree_block family. The parameter blocksize was set to the metadata block size, directly or indirectly. Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 089f6da09411..3073b8876bca 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -3290,9 +3290,9 @@ struct btrfs_block_group_cache *btrfs_lookup_block_group(
u64 bytenr);
void btrfs_put_block_group(struct btrfs_block_group_cache *cache);
int get_block_group_index(struct btrfs_block_group_cache *cache);
-struct extent_buffer *btrfs_alloc_free_block(struct btrfs_trans_handle *trans,
- struct btrfs_root *root, u32 blocksize,
- u64 parent, u64 root_objectid,
+struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans,
+ struct btrfs_root *root, u64 parent,
+ u64 root_objectid,
struct btrfs_disk_key *key, int level,
u64 hint, u64 empty_size);
void btrfs_free_tree_block(struct btrfs_trans_handle *trans,