Skip to contentSkip to conversation

Change constant zero to NOTIFY_DONE in ratelimit_handler()

PATCH New Paul E. McKenney 1 participant 1 message Jan 30, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Change constant zero to NOTIFY_DONE in ratelimit_handler()

Hello!

Change a hard-coded constant 0 to the symbolic equivalent NOTIFY_DONE in the ratelimit_handler() CPU notifier handler function.

---

 page-writeback.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
mm/page-writeback.c +1 -1
diff -urpNa -X dontdiff linux-2.6.20-rc6/mm/page-writeback.c linux-2.6.20-rc6-ratelimit_handler-fix/mm/page-writeback.c
@@ -517,7 +517,7 @@ static int __cpuinit
 ratelimit_handler(struct notifier_block *self, unsigned long u, void *v)
 {
 	writeback_set_ratelimit();
-	return 0;
+	return NOTIFY_DONE;
 }
 
 static struct notifier_block __cpuinitdata ratelimit_nb = {