From: Heinz Mauelshagen <heinzm@xxxxxxxxxx> Signed-off-by: heinzm <heinzm@xxxxxxxxxx> --- drivers/md/md.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index 24e55e2cf4db..e6ff0da6ebb6 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -111,7 +111,7 @@ static bool md_is_rdwr(struct mddev *mddev) */ #define MD_DEFAULT_MAX_CORRECTED_READ_ERRORS 20 /* Default safemode delay: 200 msec */ -#define DEFAULT_SAFEMODE_DELAY ((200 * HZ)/1000 +1) +#define DEFAULT_SAFEMODE_DELAY ((200 * HZ)/1000 + 1) /* * Current RAID-1,4,5 parallel reconstruction 'guaranteed speed limit' * is 1000 KB/sec, so the extra system load does not show up that much. @@ -1460,7 +1460,7 @@ static void super_90_sync(struct mddev *mddev, struct md_rdev *rdev) sb->cp_events_hi = (mddev->events>>32); sb->cp_events_lo = (u32)mddev->events; if (mddev->recovery_cp == MaxSector) - sb->state = (1<< MD_SB_CLEAN); + sb->state = (1<<MD_SB_CLEAN); } else sb->recovery_cp = 0; @@ -9011,8 +9011,8 @@ void md_do_sync(struct md_thread *thread) cond_resched(); recovery_done = io_sectors - atomic_read(&mddev->recovery_active); - currspeed = ((unsigned long)(recovery_done - mddev->resync_mark_cnt))/2 - /((jiffies-mddev->resync_mark)/HZ +1) +1; + currspeed = ((unsigned long)(recovery_done - mddev->resync_mark_cnt)) / 2 + / ((jiffies-mddev->resync_mark)/HZ + 1) + 1; if (currspeed > speed_min(mddev)) { if (currspeed > speed_max(mddev)) { -- 2.39.2