From: Goldwyn Rodrigues <rgold...@suse.com> While performing an fsck, an assertion failure occurs because of reusing path in a loop. ctree.c:1112: btrfs_search_slot: Warning: assertion `p->nodes[0] != NULL` failed, value 0
Signed-off-by: Goldwyn Rodrigues <rgold...@suse.com> diff --git a/cmds-check.c b/cmds-check.c index 670ccd1..a6f281c 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -7541,6 +7541,7 @@ static int record_orphan_data_extents(struct btrfs_fs_info *fs_info, key.objectid = dback->owner; key.type = BTRFS_EXTENT_DATA_KEY; key.offset = dback->offset; + btrfs_init_path(path); ret = btrfs_search_slot(NULL, dest_root, &key, path, 0, 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