]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/vmscan.c: try_to_freeze() returns boolean
authorJeff Liu <jeff.liu@oracle.com>
Thu, 29 Nov 2012 03:17:27 +0000 (14:17 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:10 +0000 (16:23 +1100)
kswapd()->try_to_freeze() is defined to return a boolean, so it's better
to use a bool to hold its return value.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c

index 5d97a95144cc50e223fd276dc38d593caead0249..92b2efaea58e41d86893123ed33520d74e09be11 100644 (file)
@@ -2982,7 +2982,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