linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/vmscan.c: s/int ret/bool ret/ in kswapd() because try_to_freeze() return boolean
@ 2012-11-01  7:50 Jeff Liu
  0 siblings, 0 replies; only message in thread
From: Jeff Liu @ 2012-11-01  7:50 UTC (permalink / raw)
  To: linux-mm, Andrew Morton

Hello,

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

Thanks,
-Jeff

Signed-off-by: Jie Liu <jeff.liu@oracle.com>

---
 mm/vmscan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 2624edc..49e4c6a 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -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
-- 
1.7.9.5

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-01  7:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-01  7:50 [PATCH] mm/vmscan.c: s/int ret/bool ret/ in kswapd() because try_to_freeze() return boolean Jeff Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).