Lines Matching refs:alloc_k
390 struct bkey_s_c alloc_k; in bch2_check_backpointer_has_valid_bucket() local
407 alloc_k = bch2_bkey_get_iter(trans, &alloc_iter, BTREE_ID_alloc, bucket, 0); in bch2_check_backpointer_has_valid_bucket()
408 ret = bkey_err(alloc_k); in bch2_check_backpointer_has_valid_bucket()
412 if (alloc_k.k->type != KEY_TYPE_alloc_v4) { in bch2_check_backpointer_has_valid_bucket()
879 static int check_bucket_backpointer_mismatch(struct btree_trans *trans, struct bkey_s_c alloc_k, in check_bucket_backpointer_mismatch() argument
885 const struct bch_alloc_v4 *a = bch2_alloc_to_v4(alloc_k, &a_convert); in check_bucket_backpointer_mismatch()
898 struct bch_dev *ca = bch2_dev_bucket_tryget_noerror(trans->c, alloc_k.k->p); in check_bucket_backpointer_mismatch()
906 bucket_pos_to_bp_start(ca, alloc_k.k->p), in check_bucket_backpointer_mismatch()
907 bucket_pos_to_bp_end(ca, alloc_k.k->p), 0, bp_k, ret) { in check_bucket_backpointer_mismatch()
947 ret = bch2_backpointers_maybe_flush(trans, alloc_k, last_flushed); in check_bucket_backpointer_mismatch()
955 ret = check_bucket_backpointers_to_extents(trans, ca, alloc_k.k->p) ?: in check_bucket_backpointer_mismatch()
965 alloc_k.k->p.offset) ?: in check_bucket_backpointer_mismatch()
968 alloc_k.k->p.offset) in check_bucket_backpointer_mismatch()