Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 6 of 6) sorted by relevance

/block/
Dbfq-cgroup.c37 static void bfqg_stats_mark_##name(struct bfqg_stats *stats) \
39 stats->flags |= (1 << BFQG_stats_##name); \
41 static void bfqg_stats_clear_##name(struct bfqg_stats *stats) \
43 stats->flags &= ~(1 << BFQG_stats_##name); \
45 static int bfqg_stats_##name(struct bfqg_stats *stats) \
47 return (stats->flags & (1 << BFQG_stats_##name)) != 0; \
56 static void bfqg_stats_update_group_wait_time(struct bfqg_stats *stats) in BFQG_FLAG_FNS()
60 if (!bfqg_stats_waiting(stats)) in BFQG_FLAG_FNS()
64 if (time_after64(now, stats->start_group_wait_time)) in BFQG_FLAG_FNS()
65 blkg_stat_add(&stats->group_wait_time, in BFQG_FLAG_FNS()
[all …]
Dblk-stat.c98 list_for_each_entry_rcu(cb, &q->stats->callbacks, list) { in blk_stat_add()
184 spin_lock(&q->stats->lock); in blk_stat_add_callback()
185 list_add_tail_rcu(&cb->list, &q->stats->callbacks); in blk_stat_add_callback()
187 spin_unlock(&q->stats->lock); in blk_stat_add_callback()
194 spin_lock(&q->stats->lock); in blk_stat_remove_callback()
196 if (list_empty(&q->stats->callbacks) && !q->stats->enable_accounting) in blk_stat_remove_callback()
198 spin_unlock(&q->stats->lock); in blk_stat_remove_callback()
223 spin_lock(&q->stats->lock); in blk_stat_enable_accounting()
224 q->stats->enable_accounting = true; in blk_stat_enable_accounting()
226 spin_unlock(&q->stats->lock); in blk_stat_enable_accounting()
[all …]
Dcfq-iosched.c308 struct cfqg_stats stats; /* stats for this cfqg */ member
475 static inline void cfqg_stats_mark_##name(struct cfqg_stats *stats) \
477 stats->flags |= (1 << CFQG_stats_##name); \
479 static inline void cfqg_stats_clear_##name(struct cfqg_stats *stats) \
481 stats->flags &= ~(1 << CFQG_stats_##name); \
483 static inline int cfqg_stats_##name(struct cfqg_stats *stats) \
485 return (stats->flags & (1 << CFQG_stats_##name)) != 0; \
494 static void cfqg_stats_update_group_wait_time(struct cfqg_stats *stats) in CFQG_FLAG_FNS()
498 if (!cfqg_stats_waiting(stats)) in CFQG_FLAG_FNS()
502 if (time_after64(now, stats->start_group_wait_time)) in CFQG_FLAG_FNS()
[all …]
Dblk-core.c849 q->stats = blk_alloc_queue_stats(); in blk_alloc_queue_node()
850 if (!q->stats) in blk_alloc_queue_node()
913 blk_free_queue_stats(q->stats); in blk_alloc_queue_node()
1526 int stats = 0; in part_round_stats() local
1529 stats |= 1; in part_round_stats()
1534 stats |= 2; in part_round_stats()
1537 if (!stats) in part_round_stats()
1542 if (stats & 2) in part_round_stats()
1544 if (stats & 1) in part_round_stats()
Dbfq-iosched.h794 struct bfqg_stats stats; member
Dblk-sysfs.c812 blk_free_queue_stats(q->stats); in __blk_release_queue()