summaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorJeff Liu <jeff.liu@oracle.com>2012-12-12 01:02:48 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-12 02:22:27 +0100
commit6f6313d4870f9642cb3ea8ec892cf6da81331b9c (patch)
treec06cc439e95cbaa0b6d654def61738c1953b40a0 /mm/vmscan.c
parentmm: introduce putback_movable_pages() (diff)
downloadlinux-6f6313d4870f9642cb3ea8ec892cf6da81331b9c.tar.xz
linux-6f6313d4870f9642cb3ea8ec892cf6da81331b9c.zip
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: Jie Liu <jeff.liu@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 53947311c777..157bb116dec8 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -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