return NULL;
ulist_init(&ctx->refs);
- ulist_init(&ctx->roots);
return ctx;
}
return;
ulist_release(&ctx->refs);
- ulist_release(&ctx->roots);
kfree(ctx);
}
};
int level;
- ulist_init(&ctx->roots);
ulist_init(&ctx->refs);
trans = btrfs_join_transaction_nostart(root);
bool cached;
ret = find_parent_nodes(trans, fs_info, bytenr, elem.seq, &ctx->refs,
- &ctx->roots, NULL, &shared, false);
+ NULL, NULL, &shared, false);
if (ret == BACKREF_FOUND_SHARED) {
/* this is the only condition under which we return 1 */
ret = 1;
up_read(&fs_info->commit_root_sem);
}
out:
- ulist_release(&ctx->roots);
ulist_release(&ctx->refs);
return ret;
}
struct btrfs_backref_share_check_ctx {
/* Ulists used during backref walking. */
struct ulist refs;
- struct ulist roots;
/*
* A path from a root to a leaf that has a file extent item pointing to
* a given data extent should never exceed the maximum b+tree height.