Lines Matching defs:data_type

29 					      enum bch_data_type data_type,
32 switch (data_type) {
63 fs_usage_data_type_to_base(&usage->b, e->data_type, usage->replicas[i]);
299 if (data_type_is_hidden(old->data_type))
301 if (data_type_is_hidden(new->data_type))
306 u->d[old->data_type].buckets--;
307 u->d[new->data_type].buckets++;
309 u->d[old->data_type].sectors -= bch2_bucket_sectors_dirty(*old);
310 u->d[new->data_type].sectors += bch2_bucket_sectors_dirty(*new);
315 u->d[old->data_type].fragmented -= bch2_bucket_sectors_fragmented(ca, *old);
316 u->d[new->data_type].fragmented += bch2_bucket_sectors_fragmented(ca, *new);
331 fs_usage_data_type_to_base(&fs_usage->b, r->data_type, sectors);
366 fs_usage_data_type_to_base(&fs_usage->b, r->data_type, sectors);
497 enum bch_data_type data_type = bch2_bkey_ptr_data_type(k, p, entry_c);
526 (g->data_type != BCH_DATA_btree ||
527 data_type == BCH_DATA_btree)) {
530 g->data_type = 0;
560 if (data_type != BCH_DATA_btree && p.ptr.gen != g->gen)
563 if (fsck_err_on(bucket_data_type_mismatch(g->data_type, data_type),
568 bch2_data_type_str(g->data_type),
569 bch2_data_type_str(data_type),
572 if (data_type == BCH_DATA_btree) {
575 g->data_type = data_type;
647 enum bch_data_type data_type = bch2_bkey_ptr_data_type(bkey_i_to_s_c(new), p, entry);
654 (g->data_type &&
655 g->data_type != data_type)) {
844 switch (d->r.data_type) {
972 a->gen, a->data_type, dst_sectors);
1007 __mark_pointer(trans, ca, k, &p.ptr, *sectors, bp.data_type, &a->v);
1023 ret = __mark_pointer(trans, ca, k, &p.ptr, *sectors, bp.data_type, &new);
1039 enum bch_data_type data_type,
1070 r.e.data_type = data_type;
1107 r.e.data_type = data_type;
1125 enum bch_data_type data_type = bkey_is_btree_ptr(k.k)
1131 r.e.data_type = data_type;
1157 ret = bch2_trigger_stripe_ptr(trans, k, p, data_type, disk_sectors, flags);
1292 if (a->v.data_type && type && a->v.data_type != type) {
1298 bch2_data_type_str(a->v.data_type),
1305 if (a->v.data_type != type ||
1307 a->v.data_type = type;
1317 u64 b, enum bch_data_type data_type, unsigned sectors,
1328 if (bch2_fs_inconsistent_on(g->data_type &&
1329 g->data_type != data_type, c,
1331 bch2_data_type_str(g->data_type),
1332 bch2_data_type_str(data_type))) {
1340 bch2_data_type_str(g->data_type ?: data_type),
1346 g->data_type = data_type;