Lines Matching full:acc
63 static inline void bpos_to_disk_accounting_pos(struct disk_accounting_pos *acc, struct bpos p) in bpos_to_disk_accounting_pos() argument
65 acc->_pad = p; in bpos_to_disk_accounting_pos()
67 bch2_bpos_swab(&acc->_pad); in bpos_to_disk_accounting_pos()
124 struct bch_accounting_mem *acc = &c->accounting; in bch2_accounting_mem_mod_locked() local
129 EBUG_ON(gc && !acc->gc_running); in bch2_accounting_mem_mod_locked()
157 while ((idx = eytzinger0_find(acc->k.data, acc->k.nr, sizeof(acc->k.data[0]), in bch2_accounting_mem_mod_locked()
158 accounting_pos_cmp, &a.k->p)) >= acc->k.nr) { in bch2_accounting_mem_mod_locked()
164 struct accounting_mem_entry *e = &acc->k.data[idx]; in bch2_accounting_mem_mod_locked()
181 static inline void bch2_accounting_mem_read_counters(struct bch_accounting_mem *acc, in bch2_accounting_mem_read_counters() argument
186 if (unlikely(idx >= acc->k.nr)) in bch2_accounting_mem_read_counters()
189 struct accounting_mem_entry *e = &acc->k.data[idx]; in bch2_accounting_mem_read_counters()
200 struct bch_accounting_mem *acc = &c->accounting; in bch2_accounting_mem_read() local
201 unsigned idx = eytzinger0_find(acc->k.data, acc->k.nr, sizeof(acc->k.data[0]), in bch2_accounting_mem_read()
204 bch2_accounting_mem_read_counters(acc, idx, v, nr, false); in bch2_accounting_mem_read()