Thread (3 messages) 3 messages, 1 author, 2004-12-01

[PATCH md 2 of 2] Fix jiffies handling in md.c

DORMANTno replies

From: NeilBrown <hidden>
Date: 2004-12-01 00:49:58

Use time_after_eq instead of >=

From: Michal Schmidt <redacted>
Signed-off-by: Neil Brown <redacted>

### Diffstat output
 ./drivers/md/md.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff ./drivers/md/md.c~current~ ./drivers/md/md.c
--- ./drivers/md/md.c~current~	2004-12-01 11:24:00.000000000 +1100
+++ ./drivers/md/md.c	2004-12-01 11:24:00.000000000 +1100
@@ -3503,7 +3503,7 @@ static void md_do_sync(mddev_t *mddev)
 			break;
 
 	repeat:
-		if (jiffies >= mark[last_mark] + SYNC_MARK_STEP ) {
+		if (time_after_eq(jiffies, mark[last_mark] + SYNC_MARK_STEP )) {
 			/* step marks */
 			int next = (last_mark+1) % SYNC_MARKS;
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help