Lines Matching refs:open_buckets
79 open_bucket_idx_t idx = ob - c->open_buckets; in bch2_open_bucket_hash_add()
88 open_bucket_idx_t idx = ob - c->open_buckets; in bch2_open_bucket_hash_remove()
93 slot = &c->open_buckets[*slot].hash; in bch2_open_bucket_hash_remove()
118 c->open_buckets_freelist = ob - c->open_buckets; in __bch2_open_bucket_put()
128 struct open_buckets *obs, in bch2_open_bucket_write_error()
145 ob = c->open_buckets + c->open_buckets_freelist; in bch2_open_bucket_alloc()
173 ob - c->open_buckets; in open_bucket_free_unused()
789 struct open_bucket *ob = c->open_buckets + h->s->blocks[ec_idx]; in bucket_alloc_from_stripe()
862 struct open_bucket *ob = c->open_buckets + c->open_buckets_partial[i]; in bucket_alloc_set_partial()
997 ob2 = c->open_buckets + ob->ec->blocks[i]; in should_drop_bucket()
1012 struct open_buckets ptrs = { .nr = 0 }; in bch2_writepoint_stop()
1052 c->open_buckets + c->open_buckets_partial[i]; in bch2_open_buckets_stop()
1425 spin_lock_init(&c->open_buckets[0].lock); in bch2_fs_allocator_foreground_init()
1427 for (ob = c->open_buckets + 1; in bch2_fs_allocator_foreground_init()
1428 ob < c->open_buckets + ARRAY_SIZE(c->open_buckets); ob++) { in bch2_fs_allocator_foreground_init()
1433 c->open_buckets_freelist = ob - c->open_buckets; in bch2_fs_allocator_foreground_init()
1458 ob - c->open_buckets, in bch2_open_bucket_to_text()
1478 for (ob = c->open_buckets; in bch2_open_buckets_to_text()
1479 ob < c->open_buckets + ARRAY_SIZE(c->open_buckets); in bch2_open_buckets_to_text()
1499 c->open_buckets + c->open_buckets_partial[i]); in bch2_open_buckets_partial_to_text()
1567 for (unsigned i = 0; i < ARRAY_SIZE(c->open_buckets); i++) in bch2_fs_alloc_debug_to_text()
1568 nr[c->open_buckets[i].data_type]++; in bch2_fs_alloc_debug_to_text()
1601 for (unsigned i = 0; i < ARRAY_SIZE(c->open_buckets); i++) in bch2_dev_alloc_debug_to_text()
1602 nr[c->open_buckets[i].data_type]++; in bch2_dev_alloc_debug_to_text()