Home
last modified time | relevance | path

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

/linux-6.6.21/block/
Dblk-cgroup-rwstat.c8 int blkg_rwstat_init(struct blkg_rwstat *rwstat, gfp_t gfp) in blkg_rwstat_init() argument
13 ret = percpu_counter_init(&rwstat->cpu_cnt[i], 0, gfp); in blkg_rwstat_init()
16 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_init()
19 atomic64_set(&rwstat->aux_cnt[i], 0); in blkg_rwstat_init()
25 void blkg_rwstat_exit(struct blkg_rwstat *rwstat) in blkg_rwstat_exit() argument
30 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_exit()
43 const struct blkg_rwstat_sample *rwstat) in __blkg_prfill_rwstat() argument
61 rwstat->cnt[i]); in __blkg_prfill_rwstat()
63 v = rwstat->cnt[BLKG_RWSTAT_READ] + in __blkg_prfill_rwstat()
64 rwstat->cnt[BLKG_RWSTAT_WRITE] + in __blkg_prfill_rwstat()
[all …]
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 …]
DMakefile18 obj-$(CONFIG_BLK_CGROUP_RWSTAT) += blk-cgroup-rwstat.o