Signed-off-by: Qu Wenruo <quwen...@cn.fujitsu.com>
---
 btrfs-map-logical.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c
index e856b698..e88357fc 100644
--- a/btrfs-map-logical.c
+++ b/btrfs-map-logical.c
@@ -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;
 
-- 
2.13.0



--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to