workqueue: bool
authorJens Axboe <axboe@fb.com>
Tue, 1 Dec 2015 16:11:47 +0000 (09:11 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 1 Dec 2015 16:11:47 +0000 (09:11 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
workqueue.c

index 7a69be21803656a10326c1b525a58502289ee39c..344237538113d8fa01c3707eae156c72869b0d11 100644 (file)
@@ -79,7 +79,7 @@ static struct submit_worker *get_submit_worker(struct workqueue *wq)
        return sw;
 }
 
-static int all_sw_idle(struct workqueue *wq)
+static bool all_sw_idle(struct workqueue *wq)
 {
        int i;
 
@@ -87,10 +87,10 @@ static int all_sw_idle(struct workqueue *wq)
                struct submit_worker *sw = &wq->workers[i];
 
                if (!(sw->flags & SW_F_IDLE))
-                       return 0;
+                       return false;
        }
 
-       return 1;
+       return true;
 }
 
 /*