[patch]cfq-iosched: do cleanup

From: Shaohua Li
Date: Mon Sep 20 2010 - 04:53:36 EST


return bool for cfq_should_idle

Signed-off-by: Shaohua Li <shaohua.li@xxxxxxxxx>
---
block/cfq-iosched.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6/block/cfq-iosched.c
===================================================================
--- linux-2.6.orig/block/cfq-iosched.c 2010-09-21 00:27:23.000000000 +0800
+++ linux-2.6/block/cfq-iosched.c 2010-09-21 00:27:59.000000000 +0800
@@ -1882,10 +1882,10 @@
* in their service tree.
*/
if (service_tree->count == 1 && cfq_cfqq_sync(cfqq))
- return 1;
+ return true;
cfq_log_cfqq(cfqd, cfqq, "Not idling. st->count:%d",
service_tree->count);
- return 0;
+ return false;
}

static void cfq_arm_slice_timer(struct cfq_data *cfqd)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/