Lines Matching refs:counters
4 #include "sb-counters.h"
33 struct bch_sb_field_counters *ctrs = field_to_type(f, counters);
51 struct bch_sb_field_counters *ctrs = bch2_sb_field_get(c->disk_sb.sb, counters);
61 percpu_u64_set(&c->counters[i], val);
69 struct bch_sb_field_counters *ctrs = bch2_sb_field_get(c->disk_sb.sb, counters);
75 ret = bch2_sb_field_resize(&c->disk_sb, counters,
86 ctrs->d[i] = cpu_to_le64(percpu_u64_get(&c->counters[i]));
92 free_percpu(c->counters);
97 c->counters = __alloc_percpu(sizeof(u64) * BCH_COUNTER_NR, sizeof(u64));
98 if (!c->counters)