From: Christoph Hellwig Date: Tue, 1 Nov 2016 13:40:03 +0000 (-0600) Subject: blk-cgroup: use op_is_sync to check for synchronous requests X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d71d9ae14a0942fae519d890a743b12679e3d153;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git blk-cgroup: use op_is_sync to check for synchronous requests Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/include/linux/blk-cgroup.h b/include/linux/blk-cgroup.h index ddaf28d0988f..01b62e7bac74 100644 --- a/include/linux/blk-cgroup.h +++ b/include/linux/blk-cgroup.h @@ -599,7 +599,7 @@ static inline void blkg_rwstat_add(struct blkg_rwstat *rwstat, __percpu_counter_add(cnt, val, BLKG_STAT_CPU_BATCH); - if (op & REQ_SYNC) + if (op_is_sync(op)) cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_SYNC]; else cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC];