mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-04 23:29:20 +00:00
btrfs-progs: Refactor block sizes users in btrfs-map-logical.c
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
This commit is contained in:
parent
34bd207932
commit
20d35007f8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user