mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "rae l" <crquan@gmail.com>
To: "Jens Axboe" <axboe@kernel.dk>,
	"Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] bio: make use of bvec_nr_vecs
Date: Sat, 26 Jul 2008 12:22:29 +0800	[thread overview]
Message-ID: <91b13c310807252122k6c0f589i901644d3c7ed42d8@mail.gmail.com> (raw)
In-Reply-To: <1217009473-25878-1-git-send-email-crquan@gmail.com>

On Sat, Jul 26, 2008 at 2:11 AM, Denis ChengRq <crquan@gmail.com> wrote:
>        bvl = mempool_alloc(bs->bvec_pools[*idx], gfp_mask);
> -       if (bvl) {
> -               struct biovec_slab *bp = bvec_slabs + *idx;
> -
> -               memset(bvl, 0, bp->nr_vecs * sizeof(struct bio_vec));
> -       }
> +       if (bvl)
> +               memset(bvl, 0, bvec_nr_vecs(*idx) * sizeof(struct bio_vec));
and if we have a mempool_zalloc, this can be more simplified,

there was no mempool_zalloc yet, should we create it inlined with
__GFP_ZERO, for this and further use?

  reply	other threads:[~2008-07-26  4:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-25 18:11 Denis ChengRq
2008-07-26  4:22 ` rae l [this message]
2008-08-04  9:57 ` Jens Axboe

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=91b13c310807252122k6c0f589i901644d3c7ed42d8@mail.gmail.com \
    --to=crquan@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.petersen@oracle.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

all inboxes | Powered by JetHome®