diff options
author | David Sterba <dsterba@suse.com> | 2016-04-01 12:57:11 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-05-02 14:40:18 +0200 |
commit | 2a796d84af42403ea149d35ee5578741c5470474 (patch) | |
tree | 92f7ee711ce0bdad0f563a638305985230c08495 /backref.c | |
parent | b005ca024990569d2de459485682158633937928 (diff) |
btrfs-progs: replace leafsize with nodesize
Nodesize is used in kernel, the values are always equal. We have to keep
leafsize in headers, similarly the tree setting functions still take and
set leafsize, but it's effectively a no-op.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'backref.c')
-rw-r--r-- | backref.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -451,7 +451,7 @@ static int __add_missing_keys(struct btrfs_fs_info *fs_info, continue; BUG_ON(!ref->wanted_disk_byte); eb = read_tree_block(fs_info->tree_root, ref->wanted_disk_byte, - fs_info->tree_root->leafsize, 0); + fs_info->tree_root->nodesize, 0); if (!extent_buffer_uptodate(eb)) { free_extent_buffer(eb); return -EIO; @@ -1157,7 +1157,7 @@ int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical, } btrfs_item_key_to_cpu(path->nodes[0], found_key, path->slots[0]); if (found_key->type == BTRFS_METADATA_ITEM_KEY) - size = fs_info->extent_root->leafsize; + size = fs_info->extent_root->nodesize; else if (found_key->type == BTRFS_EXTENT_ITEM_KEY) size = found_key->offset; |