Commit 6f6313d4 authored by Jeff Liu's avatar Jeff Liu Committed by Linus Torvalds

mm/vmscan.c: try_to_freeze() returns boolean

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: default avatarJie Liu <jeff.liu@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5733c7d1
...@@ -2963,7 +2963,7 @@ static int kswapd(void *p) ...@@ -2963,7 +2963,7 @@ static int kswapd(void *p)
classzone_idx = new_classzone_idx = pgdat->nr_zones - 1; classzone_idx = new_classzone_idx = pgdat->nr_zones - 1;
balanced_classzone_idx = classzone_idx; balanced_classzone_idx = classzone_idx;
for ( ; ; ) { 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment