Lines Matching refs:cpu_cnt
69 struct percpu_counter cpu_cnt[BLKG_RWSTAT_NR]; member
209 percpu_counter_sum_positive(&rwstat->cpu_cnt[idx]); in blkg_rwstat_read_counter()
586 ret = percpu_counter_init(&rwstat->cpu_cnt[i], 0, gfp); in blkg_rwstat_init()
589 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_init()
602 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_exit()
620 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_DISCARD]; in blkg_rwstat_add()
622 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_WRITE]; in blkg_rwstat_add()
624 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_READ]; in blkg_rwstat_add()
629 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_SYNC]; in blkg_rwstat_add()
631 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC]; in blkg_rwstat_add()
649 percpu_counter_sum_positive(&rwstat->cpu_cnt[i]); in blkg_rwstat_read()
677 percpu_counter_set(&rwstat->cpu_cnt[i], 0); in blkg_rwstat_reset()
696 sum[i] = percpu_counter_sum_positive(&from->cpu_cnt[i]); in blkg_rwstat_add_aux()