btrfs-progs: Refactor block sizes users in btrfs-map-logical.c

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
master
Qu Wenruo 2017-05-18 09:21:05 +08:00 committed by David Sterba
parent 34bd207932
commit 20d35007f8
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ again:
}
logical = key.objectid;
if (key.type == BTRFS_METADATA_ITEM_KEY)
len = fs_info->tree_root->nodesize;
len = fs_info->nodesize;
else
len = key.offset;
@ -286,7 +286,7 @@ int main(int argc, char **argv)
}
if (bytes == 0)
bytes = root->nodesize;
bytes = root->fs_info->nodesize;
cur_logical = logical;
cur_len = bytes;