X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=find-root.c;h=7e4c51f670aeb89485ea653701f8d3b7726e555e;hb=51667947e435444d9e125189b2a07e3966ac145c;hp=89d36119ebc9fc18f3ed3b43aa0e2a424a63e49b;hpb=2a796d84af42403ea149d35ee5578741c5470474;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/find-root.c b/find-root.c index 89d3611..7e4c51f 100644 --- a/find-root.c +++ b/find-root.c @@ -118,11 +118,11 @@ int btrfs_find_root_search(struct btrfs_fs_info *fs_info, fs_info->suppress_check_block_errors = 1; while (1) { if (filter->objectid != BTRFS_CHUNK_TREE_OBJECTID) - ret = btrfs_next_bg_metadata(&fs_info->mapping_tree, + ret = btrfs_next_bg_metadata(fs_info, &chunk_offset, &chunk_size); else - ret = btrfs_next_bg_system(&fs_info->mapping_tree, + ret = btrfs_next_bg_system(fs_info, &chunk_offset, &chunk_size); if (ret) { @@ -133,8 +133,7 @@ int btrfs_find_root_search(struct btrfs_fs_info *fs_info, for (offset = chunk_offset; offset < chunk_offset + chunk_size; offset += nodesize) { - eb = read_tree_block_fs_info(fs_info, offset, nodesize, - 0); + eb = read_tree_block(fs_info, offset, 0); if (!eb || IS_ERR(eb)) continue; ret = add_eb_to_result(eb, result, nodesize, filter,