diff options
author | David Sterba <dsterba@suse.com> | 2017-08-25 17:44:22 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-09-08 16:15:05 +0200 |
commit | 2030f497516e6e91f0884c12bbf0b91a6c6b83e4 (patch) | |
tree | e22450bcb20c4da920a572de06d189495c7495da /btrfs-corrupt-block.c | |
parent | d1b968dcbad59a304fafbf62b859e0692287a2f8 (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 'btrfs-corrupt-block.c')
-rw-r--r-- | btrfs-corrupt-block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-corrupt-block.c b/btrfs-corrupt-block.c index 297841c1..83adcf80 100644 --- a/btrfs-corrupt-block.c +++ b/btrfs-corrupt-block.c @@ -1364,7 +1364,7 @@ int main(int argc, char **argv) struct extent_buffer *eb; eb = btrfs_find_create_tree_block(root->fs_info, - logical, root->fs_info->sectorsize); + logical); if (!eb) { error( "not enough memory to allocate extent buffer for bytenr %llu", |