Lines Matching refs:cpu_cnt
65 struct percpu_counter cpu_cnt; member
70 struct percpu_counter cpu_cnt[BLKG_RWSTAT_NR]; member
507 ret = percpu_counter_init(&stat->cpu_cnt, 0, gfp); in blkg_stat_init()
517 percpu_counter_destroy(&stat->cpu_cnt); in blkg_stat_exit()
530 __percpu_counter_add(&stat->cpu_cnt, val, BLKG_STAT_CPU_BATCH); in blkg_stat_add()
539 return percpu_counter_sum_positive(&stat->cpu_cnt); in blkg_stat_read()
548 percpu_counter_set(&stat->cpu_cnt, 0); in blkg_stat_reset()
571 ret = percpu_counter_init(&rwstat->cpu_cnt[i], 0, gfp); in blkg_rwstat_init()
574 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_init()
587 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_exit()
605 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_WRITE]; in blkg_rwstat_add()
607 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_READ]; in blkg_rwstat_add()
612 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_SYNC]; in blkg_rwstat_add()
614 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC]; in blkg_rwstat_add()
632 percpu_counter_sum_positive(&rwstat->cpu_cnt[i])); in blkg_rwstat_read()
661 percpu_counter_set(&rwstat->cpu_cnt[i], 0); in blkg_rwstat_reset()