Home
last modified time | relevance | path

Searched refs:open_buckets (Results 1 – 13 of 13) sorted by relevance

/linux/fs/bcachefs/
H A Dalloc_foreground.h42 static inline void ob_push(struct bch_fs *c, struct open_buckets *obs, in ob_push()
47 obs->v[obs->nr++] = ob - c->open_buckets; in ob_push()
53 ((_ob) = (_c)->open_buckets + (_obs)->v[_i], true); \
57 struct open_buckets *obs) in ec_open_bucket()
70 struct open_buckets *, unsigned);
81 struct open_buckets *ptrs) in bch2_open_buckets_put()
93 struct open_buckets ptrs = { .nr = 0 }, keep = { .nr = 0 }; in bch2_alloc_sectors_done_inlined()
108 struct open_buckets *ptrs) in bch2_open_bucket_get()
133 struct open_bucket *ob = &c->open_buckets[slot]; in bch2_bucket_is_open()
159 int bch2_bucket_alloc_set_trans(struct btree_trans *, struct open_buckets *,
H A Dalloc_foreground.c80 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()
[all …]
H A Dio_misc.c34 struct open_buckets open_buckets = { 0 }; in bch2_extent_fallocate() local
103 bch2_open_bucket_get(c, wp, &open_buckets); in bch2_extent_fallocate()
122 bch2_open_buckets_put(c, &open_buckets); in bch2_extent_fallocate()
H A Dio_write.h79 op->open_buckets.nr = 0; in bch2_write_op_init()
H A Dio_write.c465 EBUG_ON(op->open_buckets.nr); in bch2_write_done()
550 bch2_open_bucket_write_error(c, &op->open_buckets, dev); in __bch2_write_index()
552 bch2_open_buckets_put(c, &op->open_buckets); in __bch2_write_index()
1422 if (op->open_buckets.nr + op->nr_replicas + 1 > in __bch2_write()
1423 ARRAY_SIZE(op->open_buckets.v)) in __bch2_write()
1457 bch2_open_bucket_get(c, wp, &op->open_buckets); in __bch2_write()
H A Dbtree_types.h61 struct open_buckets ob;
135 struct open_buckets ob;
H A Dbtree_update_interior.h108 open_bucket_idx_t open_buckets[BTREE_UPDATE_NODES_MAX * member
H A Ddata_update.c500 bch2_open_bucket_get(c, wp, &update->op.open_buckets); in bch2_update_unwritten_extent()
513 bch2_open_buckets_put(c, &update->op.open_buckets); in bch2_update_unwritten_extent()
H A Dec.c1467 ob = c->open_buckets + s->blocks[i]; in ec_stripe_create()
1535 ob = c->open_buckets + s->blocks[i]; in ec_stripe_create()
1887 struct open_buckets buckets; in new_stripe_alloc_buckets()
2055 bch2_open_bucket_put(c, c->open_buckets + h->s->blocks[i]); in __bch2_ec_stripe_head_reuse()
2318 ob = c->open_buckets + h->s->blocks[i]; in __bch2_ec_stop()
H A Dbtree_update_interior.c313 struct open_buckets obs = { .nr = 0 }; in __bch2_btree_node_alloc()
838 bch2_open_bucket_put(c, c->open_buckets + as->open_buckets[i]); in btree_update_nodes_written()
1025 as->open_buckets[as->nr_open_buckets++] = in bch2_btree_update_get_open_buckets()
H A Dalloc_background.c2475 for (ob = c->open_buckets; in bch2_dev_has_open_write_point()
2476 ob < c->open_buckets + ARRAY_SIZE(c->open_buckets); in bch2_dev_has_open_write_point()
H A Dsysfs.c177 read_attribute(open_buckets);
H A Dbcachefs.h915 struct open_bucket open_buckets[OPEN_BUCKETS_COUNT]; member