summaryrefslogtreecommitdiff
path: root/extent-tree.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-08-25 17:44:22 +0200
committerDavid Sterba <dsterba@suse.com>2017-09-08 16:15:05 +0200
commit2030f497516e6e91f0884c12bbf0b91a6c6b83e4 (patch)
treee22450bcb20c4da920a572de06d189495c7495da /extent-tree.c
parentd1b968dcbad59a304fafbf62b859e0692287a2f8 (diff)
btrfs-progs: drop blocksize argument from btrfs_find_create_tree_block
Metadata blocks are always nodesize. When reading the superblock::sys_array, the actual size of data is fixed to 4k and smaller than nodesize, but otherwise everything works as before. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'extent-tree.c')
-rw-r--r--extent-tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/extent-tree.c b/extent-tree.c
index 46b8a05..81a17a3 100644
--- a/extent-tree.c
+++ b/extent-tree.c
@@ -2818,8 +2818,7 @@ struct extent_buffer *btrfs_alloc_free_block(struct btrfs_trans_handle *trans,
return ERR_PTR(ret);
}
- buf = btrfs_find_create_tree_block(root->fs_info, ins.objectid,
- blocksize);
+ buf = btrfs_find_create_tree_block(root->fs_info, ins.objectid);
if (!buf) {
btrfs_free_extent(trans, root, ins.objectid, ins.offset,
0, root->root_key.objectid, level, 0);