Lines Matching refs:cpu_cnt
69 struct percpu_counter cpu_cnt; member
74 struct percpu_counter cpu_cnt[BLKG_RWSTAT_NR]; member
610 ret = percpu_counter_init(&stat->cpu_cnt, 0, gfp); in blkg_stat_init()
620 percpu_counter_destroy(&stat->cpu_cnt); in blkg_stat_exit()
633 percpu_counter_add_batch(&stat->cpu_cnt, val, BLKG_STAT_CPU_BATCH); in blkg_stat_add()
642 return percpu_counter_sum_positive(&stat->cpu_cnt); in blkg_stat_read()
651 percpu_counter_set(&stat->cpu_cnt, 0); in blkg_stat_reset()
674 ret = percpu_counter_init(&rwstat->cpu_cnt[i], 0, gfp); in blkg_rwstat_init()
677 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_init()
690 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_exit()
708 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_DISCARD]; in blkg_rwstat_add()
710 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_WRITE]; in blkg_rwstat_add()
712 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_READ]; in blkg_rwstat_add()
717 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_SYNC]; in blkg_rwstat_add()
719 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC]; in blkg_rwstat_add()
737 percpu_counter_sum_positive(&rwstat->cpu_cnt[i])); in blkg_rwstat_read()
766 percpu_counter_set(&rwstat->cpu_cnt[i], 0); in blkg_rwstat_reset()
785 sum[i] = percpu_counter_sum_positive(&from->cpu_cnt[i]); in blkg_rwstat_add_aux()