Skip to contentSkip to conversation

mm/vmscan.c: s/int ret/bool ret/ in kswapd() because try_to_freeze() return boolean

PATCH New Jeff Liu 1 participant 1 message Nov 1, 2012

Subsystems (3)
lore
Share & tools
lore

Jeff Liu

author
#0 lore raw

PATCH 1/1 mm/vmscan.c: s/int ret/bool ret/ in kswapd() because try_to_freeze() return boolean

Hello,

kswapd()->try_to_freeze() is defined to return a boolean, so it's better to fix the return value type accordingly.

Thanks,
-Jeff

---
 mm/vmscan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/vmscan.c +1 -1
index 2624edc..49e4c6a 100644
@@ -2969,7 +2969,7 @@ static int kswapd(void *p)
 	classzone_idx = new_classzone_idx = pgdat->nr_zones - 1;
 	balanced_classzone_idx = classzone_idx;
 	for ( ; ; ) {
-		int ret;
+		bool ret;
 
 		/*
 		 * If the last balance_pgdat was unsuccessful it's unlikely a
Signature · 7 lines
1.7.9.5

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>