Lines Matching refs:freespace_iter
1126 struct btree_iter *freespace_iter, in bch2_check_alloc_key() argument
1183 bch2_btree_iter_set_pos(freespace_iter, alloc_freespace_pos(alloc_k.k->p, *a)); in bch2_check_alloc_key()
1184 k = bch2_btree_iter_peek_slot(freespace_iter); in bch2_check_alloc_key()
1206 update->k.p = freespace_iter->pos; in bch2_check_alloc_key()
1209 ret = bch2_trans_update(trans, freespace_iter, update, 0); in bch2_check_alloc_key()
1260 struct btree_iter *freespace_iter) in bch2_check_alloc_hole_freespace() argument
1269 bch2_btree_iter_set_pos(freespace_iter, start); in bch2_check_alloc_hole_freespace()
1271 k = bch2_btree_iter_peek_slot(freespace_iter); in bch2_check_alloc_hole_freespace()
1282 freespace_iter->pos.inode, in bch2_check_alloc_hole_freespace()
1283 freespace_iter->pos.offset, in bch2_check_alloc_hole_freespace()
1294 update->k.p = freespace_iter->pos; in bch2_check_alloc_hole_freespace()
1297 freespace_iter->pos.offset)); in bch2_check_alloc_hole_freespace()
1299 ret = bch2_trans_update(trans, freespace_iter, update, 0); in bch2_check_alloc_hole_freespace()
1506 struct btree_iter iter, discard_iter, freespace_iter, bucket_gens_iter; in bch2_check_alloc_info() local
1516 bch2_trans_iter_init(trans, &freespace_iter, BTREE_ID_freespace, POS_MIN, in bch2_check_alloc_info()
1540 &freespace_iter, in bch2_check_alloc_info()
1550 &freespace_iter) ?: in bch2_check_alloc_info()
1572 bch2_trans_iter_exit(trans, &freespace_iter); in bch2_check_alloc_info()