Home
last modified time | relevance | path

Searched refs:rwstat (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/block/
Dblk-cgroup-rwstat.h35 static inline u64 blkg_rwstat_read_counter(struct blkg_rwstat *rwstat, in blkg_rwstat_read_counter() argument
38 return atomic64_read(&rwstat->aux_cnt[idx]) + in blkg_rwstat_read_counter()
39 percpu_counter_sum_positive(&rwstat->cpu_cnt[idx]); in blkg_rwstat_read_counter()
42 int blkg_rwstat_init(struct blkg_rwstat *rwstat, gfp_t gfp);
43 void blkg_rwstat_exit(struct blkg_rwstat *rwstat);
45 const struct blkg_rwstat_sample *rwstat);
61 static inline void blkg_rwstat_add(struct blkg_rwstat *rwstat, in blkg_rwstat_add() argument
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()
[all …]
Dblk-cgroup-rwstat.c8 int blkg_rwstat_init(struct blkg_rwstat *rwstat, gfp_t gfp) in blkg_rwstat_init() argument
12 ret = percpu_counter_init_many(rwstat->cpu_cnt, 0, gfp, BLKG_RWSTAT_NR); in blkg_rwstat_init()
17 atomic64_set(&rwstat->aux_cnt[i], 0); in blkg_rwstat_init()
22 void blkg_rwstat_exit(struct blkg_rwstat *rwstat) in blkg_rwstat_exit() argument
24 percpu_counter_destroy_many(rwstat->cpu_cnt, BLKG_RWSTAT_NR); in blkg_rwstat_exit()
37 const struct blkg_rwstat_sample *rwstat) in __blkg_prfill_rwstat() argument
55 rwstat->cnt[i]); in __blkg_prfill_rwstat()
57 v = rwstat->cnt[BLKG_RWSTAT_READ] + in __blkg_prfill_rwstat()
58 rwstat->cnt[BLKG_RWSTAT_WRITE] + in __blkg_prfill_rwstat()
59 rwstat->cnt[BLKG_RWSTAT_DISCARD]; in __blkg_prfill_rwstat()
[all …]
DMakefile18 obj-$(CONFIG_BLK_CGROUP_RWSTAT) += blk-cgroup-rwstat.o