]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
mm/vmscan.c: try_to_freeze() returns boolean
authorJeff Liu <jeff.liu@oracle.com>
Wed, 12 Dec 2012 00:02:48 +0000 (16:02 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Dec 2012 01:22:27 +0000 (17:22 -0800)
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c

index 53947311c77722547c8c7b464b0a6b2a93d1efc6..157bb116dec883f7a5075b2078f83a7022080820 100644 (file)
@@ -2963,7 +2963,7 @@ static int kswapd(void *p)
        classzone_idx = new_classzone_idx = pgdat->nr_zones - 1;
        balanced_classzone_idx = classzone_idx;
        for ( ; ; ) {
        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
 
                /*
                 * If the last balance_pgdat was unsuccessful it's unlikely a