Home
last modified time | relevance | path

Searched refs:cpu_cnt (Results 1 – 4 of 4) sorted by relevance

/block/
Dblk-cgroup-rwstat.h27 struct percpu_counter cpu_cnt[BLKG_RWSTAT_NR]; member
39 percpu_counter_sum_positive(&rwstat->cpu_cnt[idx]); in blkg_rwstat_read_counter()
67 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_DISCARD]; in blkg_rwstat_add()
69 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_WRITE]; in blkg_rwstat_add()
71 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_READ]; in blkg_rwstat_add()
76 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_SYNC]; in blkg_rwstat_add()
78 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC]; in blkg_rwstat_add()
96 percpu_counter_sum_positive(&rwstat->cpu_cnt[i]); in blkg_rwstat_read()
124 percpu_counter_set(&rwstat->cpu_cnt[i], 0); in blkg_rwstat_reset()
143 sum[i] = percpu_counter_sum_positive(&from->cpu_cnt[i]); in blkg_rwstat_add_aux()
Dblk-cgroup-rwstat.c13 ret = percpu_counter_init(&rwstat->cpu_cnt[i], 0, gfp); in blkg_rwstat_init()
16 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_init()
30 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_exit()
Dbfq-cgroup.c23 ret = percpu_counter_init(&stat->cpu_cnt, 0, gfp); in bfq_stat_init()
33 percpu_counter_destroy(&stat->cpu_cnt); in bfq_stat_exit()
46 percpu_counter_add_batch(&stat->cpu_cnt, val, BLKG_STAT_CPU_BATCH); in bfq_stat_add()
55 return percpu_counter_sum_positive(&stat->cpu_cnt); in bfq_stat_read()
64 percpu_counter_set(&stat->cpu_cnt, 0); in bfq_stat_reset()
Dbfq-iosched.h809 struct percpu_counter cpu_cnt; member