[PATCH 3/5] md: make is_mddev_idle() take a bool init flag
Hiroshi Nishida <[email protected]>
| Newsgroups | gmane.linux.raid,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
is_mddev_idle() took an int init flag but passes it straight through to is_rdev_holder_idle(), which already takes a bool. Make the types consistent and update the two callers to pass true/false. No functional change. Assisted-by: Claude:claude-opus-4-8 [Claude Code] Signed-off-by: Hiroshi Nishida <[email protected]> --- drivers/md/md.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index d1465bcd86c8..829b4a3f545b 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -9219,7 +9219,7 @@ static bool is_rdev_holder_idle(struct md_rdev *rdev, bool init) * * Noted this checking rely on IO accounting is enabled. */ -static bool is_mddev_idle(struct mddev *mddev, int init) +static bool is_mddev_idle(struct mddev *mddev, bool init) { unsigned long last_events = mddev->normal_io_events; struct gendisk *disk; @@ -9771,7 +9771,7 @@ void md_do_sync(struct md_thread *thread) pr_debug("md: using maximum available idle IO bandwidth (but not more than %d KB/sec) for %s.\n", speed_max(mddev), desc); - is_mddev_idle(mddev, 1); /* this initializes IO event counters */ + is_mddev_idle(mddev, true); /* this initializes IO event counters */ io_sectors = 0; for (m = 0; m < SYNC_MARKS; m++) { @@ -9920,7 +9920,7 @@ void md_do_sync(struct md_thread *thread) goto repeat; } if (!sync_io_within_limit(mddev) && - !is_mddev_idle(mddev, 0)) { + !is_mddev_idle(mddev, false)) { /* * Give other IO more of a chance. * The faster the devices, the less we wait. -- 2.43.0