Lines Matching full:counters
4 #include "sb-counters.h"
38 struct bch_sb_field_counters *ctrs = field_to_type(f, counters); in bch2_sb_counters_to_text()
52 struct bch_sb_field_counters *ctrs = bch2_sb_field_get(c->disk_sb.sb, counters); in bch2_sb_counters_to_cpu()
62 percpu_u64_set(&c->counters[i], v); in bch2_sb_counters_to_cpu()
72 struct bch_sb_field_counters *ctrs = bch2_sb_field_get(c->disk_sb.sb, counters); in bch2_sb_counters_from_cpu()
77 ret = bch2_sb_field_resize(&c->disk_sb, counters, in bch2_sb_counters_from_cpu()
88 ctrs->d[stable] = cpu_to_le64(percpu_u64_get(&c->counters[i])); in bch2_sb_counters_from_cpu()
96 free_percpu(c->counters); in bch2_fs_counters_exit()
101 c->counters = __alloc_percpu(sizeof(u64) * BCH_COUNTER_NR, sizeof(u64)); in bch2_fs_counters_init()
102 if (!c->counters) in bch2_fs_counters_init()
136 ? percpu_u64_get(&c->counters[i]) in bch2_ioctl_query_counters()