mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
fsdev: Use ThrottleDirection instread of bool is_write
'bool is_write' style is obsolete from throttle framework, adapt fsdev to the new style. Cc: Greg Kurz <groug@kaod.org> Reviewed-by: Hanna Czenczek <hreitz@redhat.com> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com> Message-Id: <20230728022006.1098509-9-pizhenwei@bytedance.com> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
This commit is contained in:
parent
7017313882
commit
00ea69f503
3 changed files with 11 additions and 11 deletions
|
@ -23,14 +23,14 @@ typedef struct FsThrottle {
|
|||
ThrottleState ts;
|
||||
ThrottleTimers tt;
|
||||
ThrottleConfig cfg;
|
||||
CoQueue throttled_reqs[2];
|
||||
CoQueue throttled_reqs[THROTTLE_MAX];
|
||||
} FsThrottle;
|
||||
|
||||
int fsdev_throttle_parse_opts(QemuOpts *, FsThrottle *, Error **);
|
||||
|
||||
void fsdev_throttle_init(FsThrottle *);
|
||||
|
||||
void coroutine_fn fsdev_co_throttle_request(FsThrottle *, bool ,
|
||||
void coroutine_fn fsdev_co_throttle_request(FsThrottle *, ThrottleDirection ,
|
||||
struct iovec *, int);
|
||||
|
||||
void fsdev_throttle_cleanup(FsThrottle *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue