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 12 ret = percpu_counter_init_many(rwstat->cpu_cnt, 0, gfp, BLKG_RWSTAT_NR); 17 atomic64_set(&rwstat->aux_cnt[i], 0); 22 void blkg_rwstat_exit(struct blkg_rwstat *rwstat) argument 24 percpu_counter_destroy_many(rwstat->cpu_cnt, BLKG_RWSTAT_NR); 32 * @rwstat: rwstat to print 34 * Print @rwstat t 36 __blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd, const struct blkg_rwstat_sample *rwstat) argument 76 struct blkg_rwstat_sample rwstat = { }; local 109 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 147 milliseconds