Home
last modified time | relevance | path

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

/linux-6.12.1/block/
Dblk-stat.c70 stat = &per_cpu_ptr(cb->cpu_stat, cpu)[bucket]; in blk_stat_add()
87 struct blk_rq_stat *cpu_stat; in blk_stat_timer_fn() local
89 cpu_stat = per_cpu_ptr(cb->cpu_stat, cpu); in blk_stat_timer_fn()
91 blk_rq_stat_sum(&cb->stat[bucket], &cpu_stat[bucket]); in blk_stat_timer_fn()
92 blk_rq_stat_init(&cpu_stat[bucket]); in blk_stat_timer_fn()
116 cb->cpu_stat = __alloc_percpu(buckets * sizeof(struct blk_rq_stat), in blk_stat_alloc_callback()
118 if (!cb->cpu_stat) { in blk_stat_alloc_callback()
141 struct blk_rq_stat *cpu_stat; in blk_stat_add_callback() local
143 cpu_stat = per_cpu_ptr(cb->cpu_stat, cpu); in blk_stat_add_callback()
145 blk_rq_stat_init(&cpu_stat[bucket]); in blk_stat_add_callback()
[all …]
Dblk-stat.h33 struct blk_rq_stat __percpu *cpu_stat; member