Searched refs:rwstat (Results 1 - 3 of 3) sorted by relevance
/linux-master/block/ |
H A D | blk-cgroup-rwstat.c | 3 * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. 6 #include "blk-cgroup-rwstat.h" 8 int blkg_rwstat_init(struct blkg_rwstat *rwstat, gfp_t gfp) argument 13 ret = percpu_counter_init(&rwstat->cpu_cnt[i], 0, gfp); 16 percpu_counter_destroy(&rwstat->cpu_cnt[i]); 19 atomic64_set(&rwstat->aux_cnt[i], 0); 25 void blkg_rwstat_exit(struct blkg_rwstat *rwstat) argument 30 percpu_counter_destroy(&rwstat->cpu_cnt[i]); 38 * @rwstat: rwstat t 42 __blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd, const struct blkg_rwstat_sample *rwstat) argument 82 struct blkg_rwstat_sample rwstat = { }; local 115 struct blkg_rwstat *rwstat; local [all...] |
H A D | blk-cgroup-rwstat.h | 3 * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. 35 static inline u64 blkg_rwstat_read_counter(struct blkg_rwstat *rwstat, argument 38 return atomic64_read(&rwstat->aux_cnt[idx]) + 39 percpu_counter_sum_positive(&rwstat->cpu_cnt[idx]); 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); 54 * @rwstat: target blkg_rwstat 58 * Add @val to @rwstat. The counters are chosen according to @rw. The 61 static inline void blkg_rwstat_add(struct blkg_rwstat *rwstat, argument 89 blkg_rwstat_read(struct blkg_rwstat *rwstat, struct blkg_rwstat_sample *result) argument 107 blkg_rwstat_total(struct blkg_rwstat *rwstat) argument 119 blkg_rwstat_reset(struct blkg_rwstat *rwstat) argument [all...] |
H A D | Makefile | 18 obj-$(CONFIG_BLK_CGROUP_RWSTAT) += blk-cgroup-rwstat.o
|
Completed in 119 milliseconds