Skip to content

Commit

Permalink
mm/vmscan.c: try_to_freeze() returns boolean
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Liu authored and Linus Torvalds committed Dec 12, 2012
1 parent 5733c7d commit 6f6313d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2963,7 +2963,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
Expand Down

0 comments on commit 6f6313d

Please sign in to comment.