@@ -21,7 +21,7 @@ void blk_rq_stat_init(struct blk_rq_stat *stat)
{
stat->min = -1ULL;
stat->max = stat->nr_samples = stat->mean = 0;
- stat->batch = 0;
+ stat->time = 0;
}
/* src is a per-cpu stat, mean isn't initialized */
@@ -33,7 +33,7 @@ void blk_rq_stat_sum(struct blk_rq_stat *dst, struct blk_rq_stat *src)
dst->min = min(dst->min, src->min);
dst->max = max(dst->max, src->max);
- dst->mean = div_u64(src->batch + dst->mean * dst->nr_samples,
+ dst->mean = div_u64(src->time + dst->mean * dst->nr_samples,
dst->nr_samples + src->nr_samples);
dst->nr_samples += src->nr_samples;
@@ -43,7 +43,7 @@ void blk_rq_stat_add(struct blk_rq_stat *stat, u64 value)
{
stat->min = min(stat->min, value);
stat->max = max(stat->max, value);
- stat->batch += value;
+ stat->time += value;
stat->nr_samples++;
}
@@ -446,7 +446,7 @@ struct blk_rq_stat {
u64 min;
u64 max;
u32 nr_samples;
- u64 batch;
+ u64 time;
};
#endif /* __LINUX_BLK_TYPES_H */