Merge tag 'for-5.20/block-2022-07-29' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / block / blk-cgroup-rwstat.h
index 9f2723b..022527b 100644 (file)
@@ -59,20 +59,20 @@ void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol,
  * caller is responsible for synchronizing calls to this function.
  */
 static inline void blkg_rwstat_add(struct blkg_rwstat *rwstat,
-                                  unsigned int op, uint64_t val)
+                                  blk_opf_t opf, uint64_t val)
 {
        struct percpu_counter *cnt;
 
-       if (op_is_discard(op))
+       if (op_is_discard(opf))
                cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_DISCARD];
-       else if (op_is_write(op))
+       else if (op_is_write(opf))
                cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_WRITE];
        else
                cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_READ];
 
        percpu_counter_add_batch(cnt, val, BLKG_STAT_CPU_BATCH);
 
-       if (op_is_sync(op))
+       if (op_is_sync(opf))
                cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_SYNC];
        else
                cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC];