Messages in this thread Patch in this message | | | Subject | [patch]cfq-iosched: do cleanup | From | Shaohua Li <> | Date | Mon, 20 Sep 2010 16:53:30 +0800 |
| |
return bool for cfq_should_idle
Signed-off-by: Shaohua Li <shaohua.li@intel.com> --- 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)
| |