提交 44b36eb2 编写于 作者: Y Yan Zheng 提交者: Chris Mason

Btrfs: Properly setup root key while reading the root

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 6d7231f7
......@@ -410,6 +410,7 @@ struct btrfs_root *btrfs_read_fs_root_no_radix(struct btrfs_fs_info *fs_info,
read_extent_buffer(l, &root->root_item,
btrfs_item_ptr_offset(l, path->slots[0]),
sizeof(root->root_item));
memcpy(&root->root_key, location, sizeof(*location));
ret = 0;
out:
btrfs_release_path(root, path);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册