* Re: [PATCH] block:Fix various function return statements to comply with function's return type in blk-throttle.c
[not found] <1435846384-25139-1-git-send-email-xerofoify@gmail.com>
@ 2015-07-02 14:19 ` Jens Axboe
0 siblings, 0 replies; only message in thread
From: Jens Axboe @ 2015-07-02 14:19 UTC (permalink / raw)
To: Nicholas Krause; +Cc: linux-kernel
On 07/02/2015 08:13 AM, Nicholas Krause wrote:
> This fixes various functions in the file blk-throttle.c with the
> return type of bool to return true/false rather then one/zero
> in order to better comply with these functions having a return
> type of bool.
Nicholas, stop sending me patches, I told you that last time too. I
appreciate the effort, but there's always one or two errors in your
patches. They are often not even compile tested, and definitely never
runtime tested. Hence the risk/reward ratio just isn't great, and I
don't want to apply them. Example from this patch:
> @@ -855,7 +855,7 @@ static bool tg_with_in_iops_limit(struct throtl_grp *tg, struct bio *bio,
>
> if (wait)
> *wait = jiffy_wait;
> - return 0;
> + return true;
> }
>
> static bool tg_with_in_bps_limit(struct throtl_grp *tg, struct bio *bio,
--
Jens Axboe
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-02 14:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1435846384-25139-1-git-send-email-xerofoify@gmail.com>
2015-07-02 14:19 ` [PATCH] block:Fix various function return statements to comply with function's return type in blk-throttle.c Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.