Lines Matching refs:open_buckets

80 	open_bucket_idx_t idx = ob - c->open_buckets;  in bch2_open_bucket_hash_add()
89 open_bucket_idx_t idx = ob - c->open_buckets; in bch2_open_bucket_hash_remove()
94 slot = &c->open_buckets[*slot].hash; in bch2_open_bucket_hash_remove()
123 c->open_buckets_freelist = ob - c->open_buckets; in __bch2_open_bucket_put()
133 struct open_buckets *obs, in bch2_open_bucket_write_error()
150 ob = c->open_buckets + c->open_buckets_freelist; in bch2_open_bucket_alloc()
171 ob - c->open_buckets; in open_bucket_free_unused()
751 struct open_buckets *ptrs, in add_new_bucket()
776 struct open_buckets *ptrs, in bch2_bucket_alloc_set_trans()
841 struct open_buckets *ptrs, in bucket_alloc_from_stripe()
878 ob = c->open_buckets + h->s->blocks[ec_idx]; in bucket_alloc_from_stripe()
924 struct open_buckets *ptrs, in bucket_alloc_set_writepoint()
932 struct open_buckets ptrs_skip = { .nr = 0 }; in bucket_alloc_set_writepoint()
952 struct open_buckets *ptrs, in bucket_alloc_set_partial()
971 struct open_bucket *ob = c->open_buckets + c->open_buckets_partial[i]; in bucket_alloc_set_partial()
1005 struct open_buckets *ptrs, in __open_bucket_add_buckets()
1073 struct open_buckets *ptrs, in open_bucket_add_buckets()
1141 ob2 = c->open_buckets + ob->ec->blocks[i]; in should_drop_bucket()
1156 struct open_buckets ptrs = { .nr = 0 }; in bch2_writepoint_stop()
1196 c->open_buckets + c->open_buckets_partial[i]; in bch2_open_buckets_stop()
1357 struct open_buckets *ptrs, in deallocate_extra_replicas()
1358 struct open_buckets *ptrs_no_use, in deallocate_extra_replicas()
1361 struct open_buckets ptrs2 = { 0 }; in deallocate_extra_replicas()
1397 struct open_buckets ptrs; in bch2_alloc_sectors_start_trans()
1570 spin_lock_init(&c->open_buckets[0].lock); in bch2_fs_allocator_foreground_init()
1572 for (ob = c->open_buckets + 1; in bch2_fs_allocator_foreground_init()
1573 ob < c->open_buckets + ARRAY_SIZE(c->open_buckets); ob++) { in bch2_fs_allocator_foreground_init()
1578 c->open_buckets_freelist = ob - c->open_buckets; in bch2_fs_allocator_foreground_init()
1603 ob - c->open_buckets, in bch2_open_bucket_to_text()
1623 for (ob = c->open_buckets; in bch2_open_buckets_to_text()
1624 ob < c->open_buckets + ARRAY_SIZE(c->open_buckets); in bch2_open_buckets_to_text()
1644 c->open_buckets + c->open_buckets_partial[i]); in bch2_open_buckets_partial_to_text()
1708 for (unsigned i = 0; i < ARRAY_SIZE(c->open_buckets); i++) in bch2_fs_alloc_debug_to_text()
1709 nr[c->open_buckets[i].data_type]++; in bch2_fs_alloc_debug_to_text()
1742 for (unsigned i = 0; i < ARRAY_SIZE(c->open_buckets); i++) in bch2_dev_alloc_debug_to_text()
1743 nr[c->open_buckets[i].data_type]++; in bch2_dev_alloc_debug_to_text()