]> git.proxmox.com Git - mirror_qemu.git/commit
throttle: use enum ThrottleDirection instead of bool is_write
authorzhenwei pi <pizhenwei@bytedance.com>
Fri, 28 Jul 2023 02:20:03 +0000 (10:20 +0800)
committerHanna Czenczek <hreitz@redhat.com>
Tue, 29 Aug 2023 08:49:24 +0000 (10:49 +0200)
commite76f201f69e76653f3e7301f2183421d9267e2f5
treea2cb010b6cb8e03c74bd72d6fed5c196dab3df64
parent27cf12298a2e3cb168880b6c7a36ea8cfbd8afb0
throttle: use enum ThrottleDirection instead of bool is_write

enum ThrottleDirection is already there, use ThrottleDirection instead
of 'bool is_write' for throttle API, also modify related codes from
block, fsdev, cryptodev and tests.

Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20230728022006.1098509-7-pizhenwei@bytedance.com>
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
backends/cryptodev.c
block/throttle-groups.c
fsdev/qemu-fsdev-throttle.c
include/qemu/throttle.h
tests/unit/test-throttle.c
util/throttle.c