]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mm/vmscan.c: try_to_freeze() returns boolean
authorJeff Liu <jeff.liu@oracle.com>
Fri, 9 Nov 2012 03:04:29 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Nov 2012 04:55:02 +0000 (15:55 +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 6b0413eb6955e8c023520a190f36c49a59ebb1e0..370244c00e442bc2985f009f93f50e42a34a7f57 100644 (file)
@@ -2986,7 +2986,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