Home
last modified time | relevance | path

Searched refs:cpu_stat (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/block/
Dblk-stat.c73 stat = &per_cpu_ptr(cb->cpu_stat, cpu)[bucket]; in blk_stat_add()
90 struct blk_rq_stat *cpu_stat; in blk_stat_timer_fn() local
92 cpu_stat = per_cpu_ptr(cb->cpu_stat, cpu); in blk_stat_timer_fn()
94 blk_rq_stat_sum(&cb->stat[bucket], &cpu_stat[bucket]); in blk_stat_timer_fn()
95 blk_rq_stat_init(&cpu_stat[bucket]); in blk_stat_timer_fn()
119 cb->cpu_stat = __alloc_percpu(buckets * sizeof(struct blk_rq_stat), in blk_stat_alloc_callback()
121 if (!cb->cpu_stat) { in blk_stat_alloc_callback()
144 struct blk_rq_stat *cpu_stat; in blk_stat_add_callback() local
146 cpu_stat = per_cpu_ptr(cb->cpu_stat, cpu); in blk_stat_add_callback()
148 blk_rq_stat_init(&cpu_stat[bucket]); in blk_stat_add_callback()
[all …]
Dblk-stat.h33 struct blk_rq_stat __percpu *cpu_stat; member