summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJeff Liu <jeff.liu@oracle.com>2012-12-11 16:02:48 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-11 17:22:27 -0800
commit6f6313d4870f9642cb3ea8ec892cf6da81331b9c (patch)
treec06cc439e95cbaa0b6d654def61738c1953b40a0 /mm
parent5733c7d11dff44e98d2ca16617886a78086b354f (diff)
downloadop-kernel-dev-6f6313d4870f9642cb3ea8ec892cf6da81331b9c.zip
op-kernel-dev-6f6313d4870f9642cb3ea8ec892cf6da81331b9c.tar.gz
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')
-rw-r--r--mm/vmscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 5394731..157bb11 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
OpenPOWER on IntegriCloud