{
        int new_current_active;
        long pending;
-       int need_change = 0;
+       bool need_change = false;
 
        if (wq->thresh == NO_THRESHOLD)
                return;
                new_current_active--;
        new_current_active = clamp_val(new_current_active, 1, wq->limit_active);
        if (new_current_active != wq->current_active)  {
-               need_change = 1;
+               need_change = true;
                wq->current_active = new_current_active;
        }
 out:
        spin_unlock(&wq->thres_lock);
 
-       if (need_change) {
+       if (need_change)
                workqueue_set_max_active(wq->normal_wq, wq->current_active);
-       }
 }
 
 static void run_ordered_work(struct btrfs_workqueue *wq,
        struct btrfs_work *work = container_of(normal_work, struct btrfs_work,
                                               normal_work);
        struct btrfs_workqueue *wq = work->wq;
-       int need_order = 0;
+       bool need_order = false;
 
        /*
         * We should not touch things inside work in the following cases:
         * So we save the needed things here.
         */
        if (work->ordered_func)
-               need_order = 1;
+               need_order = true;
 
        trace_btrfs_work_sched(work);
        thresh_exec_hook(wq);