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()
119 c->open_buckets_freelist = ob - c->open_buckets; in __bch2_open_bucket_put()
129 struct open_buckets *obs, in bch2_open_bucket_write_error()
146 ob = c->open_buckets + c->open_buckets_freelist; in bch2_open_bucket_alloc()
175 ob - c->open_buckets; in open_bucket_free_unused()
677 struct open_buckets *ptrs, in add_new_bucket()
702 struct open_buckets *ptrs, in bch2_bucket_alloc_set_trans()
763 struct open_buckets *ptrs, in bucket_alloc_from_stripe()
796 struct open_bucket *ob = c->open_buckets + h->s->blocks[ec_idx]; in bucket_alloc_from_stripe()
840 struct open_buckets *ptrs, in bucket_alloc_set_writepoint()
848 struct open_buckets ptrs_skip = { .nr = 0 }; in bucket_alloc_set_writepoint()
868 struct open_buckets *ptrs, in bucket_alloc_set_partial()
887 struct open_bucket *ob = c->open_buckets + c->open_buckets_partial[i]; in bucket_alloc_set_partial()
921 struct open_buckets *ptrs, in __open_bucket_add_buckets()
989 struct open_buckets *ptrs, in open_bucket_add_buckets()
1057 ob2 = c->open_buckets + ob->ec->blocks[i]; in should_drop_bucket()
1072 struct open_buckets ptrs = { .nr = 0 }; in bch2_writepoint_stop()
1112 c->open_buckets + c->open_buckets_partial[i]; in bch2_open_buckets_stop()
1273 struct open_buckets *ptrs, in deallocate_extra_replicas()
1274 struct open_buckets *ptrs_no_use, in deallocate_extra_replicas()
1277 struct open_buckets ptrs2 = { 0 }; in deallocate_extra_replicas()
1313 struct open_buckets ptrs; in bch2_alloc_sectors_start_trans()
1486 spin_lock_init(&c->open_buckets[0].lock); in bch2_fs_allocator_foreground_init()
1488 for (ob = c->open_buckets + 1; in bch2_fs_allocator_foreground_init()
1489 ob < c->open_buckets + ARRAY_SIZE(c->open_buckets); ob++) { in bch2_fs_allocator_foreground_init()
1494 c->open_buckets_freelist = ob - c->open_buckets; in bch2_fs_allocator_foreground_init()
1519 ob - c->open_buckets, in bch2_open_bucket_to_text()
1539 for (ob = c->open_buckets; in bch2_open_buckets_to_text()
1540 ob < c->open_buckets + ARRAY_SIZE(c->open_buckets); in bch2_open_buckets_to_text()
1560 c->open_buckets + c->open_buckets_partial[i]); in bch2_open_buckets_partial_to_text()
1624 for (unsigned i = 0; i < ARRAY_SIZE(c->open_buckets); i++) in bch2_fs_alloc_debug_to_text()
1625 nr[c->open_buckets[i].data_type]++; in bch2_fs_alloc_debug_to_text()
1658 for (unsigned i = 0; i < ARRAY_SIZE(c->open_buckets); i++) in bch2_dev_alloc_debug_to_text()
1659 nr[c->open_buckets[i].data_type]++; in bch2_dev_alloc_debug_to_text()