Lines Matching refs:alloc_k
669 struct bkey_s_c alloc_k, in bch2_bucket_do_index() argument
697 k->k.p = alloc_freespace_pos(alloc_k.k->p, *a); in bch2_bucket_do_index()
702 k->k.p = alloc_k.k->p; in bch2_bucket_do_index()
726 (bch2_bkey_val_to_text(&buf, c, alloc_k), buf.buf))) { in bch2_bucket_do_index()
1123 struct bkey_s_c alloc_k, in bch2_check_alloc_key() argument
1138 struct bch_dev *ca = bch2_dev_bucket_tryget_noerror(c, alloc_k.k->p); in bch2_check_alloc_key()
1142 alloc_k.k->p.inode, alloc_k.k->p.offset)) in bch2_check_alloc_key()
1150 a = bch2_alloc_to_v4(alloc_k, &a_convert); in bch2_check_alloc_key()
1153 bch2_btree_iter_set_pos(discard_iter, alloc_k.k->p); in bch2_check_alloc_key()
1165 (bch2_bkey_val_to_text(&buf, c, alloc_k), buf.buf))) { in bch2_check_alloc_key()
1183 bch2_btree_iter_set_pos(freespace_iter, alloc_freespace_pos(alloc_k.k->p, *a)); in bch2_check_alloc_key()
1196 bch2_bkey_val_to_text(&buf, c, alloc_k), buf.buf))) { in bch2_check_alloc_key()
1214 bch2_btree_iter_set_pos(bucket_gens_iter, alloc_gens_pos(alloc_k.k->p, &gens_offset)); in bch2_check_alloc_key()
1226 bch2_bkey_val_to_text(&buf, c, alloc_k), buf.buf))) { in bch2_check_alloc_key()
1238 g->k.p = alloc_gens_pos(alloc_k.k->p, &gens_offset); in bch2_check_alloc_key()
1376 struct bkey_s_c alloc_k; in bch2_check_discard_freespace_key() local
1391 alloc_k = bch2_bkey_get_iter(trans, &alloc_iter, BTREE_ID_alloc, pos, 0); in bch2_check_discard_freespace_key()
1392 ret = bkey_err(alloc_k); in bch2_check_discard_freespace_key()
1402 a = bch2_alloc_to_v4(alloc_k, &a_convert); in bch2_check_discard_freespace_key()
1409 (bch2_bkey_val_to_text(&buf, c, alloc_k), buf.buf), in bch2_check_discard_freespace_key()
1635 struct bkey_s_c alloc_k; in bch2_check_alloc_to_lru_ref() local
1639 alloc_k = bch2_btree_iter_peek(alloc_iter); in bch2_check_alloc_to_lru_ref()
1640 if (!alloc_k.k) in bch2_check_alloc_to_lru_ref()
1643 ret = bkey_err(alloc_k); in bch2_check_alloc_to_lru_ref()
1647 struct bch_dev *ca = bch2_dev_tryget_noerror(c, alloc_k.k->p.inode); in bch2_check_alloc_to_lru_ref()
1651 a = bch2_alloc_to_v4(alloc_k, &a_convert); in bch2_check_alloc_to_lru_ref()
1656 lru_idx, alloc_k, last_flushed); in bch2_check_alloc_to_lru_ref()
1669 bch2_bkey_val_to_text(&buf, c, alloc_k), buf.buf))) { in bch2_check_alloc_to_lru_ref()
1671 bch2_alloc_to_v4_mut(trans, alloc_k); in bch2_check_alloc_to_lru_ref()
1685 ret = bch2_lru_check_set(trans, alloc_k.k->p.inode, a->io_time[READ], in bch2_check_alloc_to_lru_ref()
1686 alloc_k, last_flushed); in bch2_check_alloc_to_lru_ref()