Lines Matching refs:bpos
456 struct bpos pos) in bch2_trans_start_alloc_update_noupdate()
477 struct bkey_i_alloc_v4 *bch2_trans_start_alloc_update(struct btree_trans *trans, struct bpos pos, in bch2_trans_start_alloc_update()
491 static struct bpos alloc_gens_pos(struct bpos pos, unsigned *offset) in alloc_gens_pos()
499 static struct bpos bucket_gens_pos_to_alloc(struct bpos pos, unsigned offset) in bucket_gens_pos_to_alloc()
557 struct bpos pos = alloc_gens_pos(iter.pos, &offset); in bch2_bucket_gens_init()
704 struct bpos pos; in bch2_bucket_do_index()
741 struct bpos bucket, u8 gen) in bch2_bucket_gen_update()
745 struct bpos pos = alloc_gens_pos(bucket, &offset); in bch2_bucket_gen_update()
1043 struct bpos end, struct bkey *hole) in bch2_get_key_or_hole()
1054 struct bpos next; in bch2_get_key_or_hole()
1085 static bool next_bucket(struct bch_fs *c, struct bch_dev **ca, struct bpos *bucket) in next_bucket()
1125 struct bpos hole_start = bkey_start_pos(k.k); in bch2_get_key_or_real_bucket_hole()
1243 struct bpos start, in bch2_check_alloc_hole_freespace()
1244 struct bpos *end, in bch2_check_alloc_hole_freespace()
1296 struct bpos start, in bch2_check_alloc_hole_bucket_gens()
1297 struct bpos *end, in bch2_check_alloc_hole_bucket_gens()
1397 struct bpos bucket = iter->pos; in bch2_check_discard_freespace_key()
1573 struct bpos next; in bch2_check_alloc_info()
1825 struct bpos *discard_pos_done, in bch2_discard_one_bucket()
1830 struct bpos pos = need_discard_iter->pos; in bch2_discard_one_bucket()
1934 struct bpos discard_pos_done = POS_MAX; in bch2_do_discards_work()
1986 struct bpos *discard_pos_done, in bch2_do_discards_fast_one()
2014 struct bpos discard_pos_done = POS_MAX; in bch2_do_discards_fast_work()
2105 struct bpos bucket, in invalidate_one_bucket_by_bps()
2109 struct bpos bp_start = bucket_pos_to_bp_start(ca, bucket); in invalidate_one_bucket_by_bps()
2110 struct bpos bp_end = bucket_pos_to_bp_end(ca, bucket); in invalidate_one_bucket_by_bps()
2141 struct bpos bucket = u64_to_bucket(lru_k.k->p.offset); in invalidate_one_bucket()
2300 struct bpos end = POS(ca->dev_idx, bucket_end); in bch2_dev_freespace_init()
2434 struct bpos start = POS(ca->dev_idx, 0); in bch2_dev_remove_alloc()
2435 struct bpos end = POS(ca->dev_idx, U64_MAX); in bch2_dev_remove_alloc()