lkml.org 
[lkml]   [2010]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch]cfq-iosched: do cleanup
From
Date
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)



\
 
 \ /
  Last update: 2010-09-20 10:55    [W:0.257 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site