mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Nicholas Krause <xerofoify@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] block:Fix various function return statements to comply with function's return type in blk-throttle.c
Date: Thu, 02 Jul 2015 08:19:59 -0600	[thread overview]
Message-ID: <5595488F.6040906@kernel.dk> (raw)
In-Reply-To: <1435846384-25139-1-git-send-email-xerofoify@gmail.com>

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


           reply	other threads:[~2015-07-02 14:20 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1435846384-25139-1-git-send-email-xerofoify@gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5595488F.6040906@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xerofoify@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome