Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1574460
| From | Christoph Hellwig <hch@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/4] md: introduce bio_clone_slow_mddev_partial() |
| Date | 2017-02-06 10:00 +0100 |
| Message-ID | <t7Njs-2A1-1@gated-at.bofh.it> (permalink) |
| References | <t7ouJ-3zf-1@gated-at.bofh.it> <t7ouJ-3zf-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> +struct bio *bio_clone_slow_mddev_partial(struct bio *bio, gfp_t gfp_mask,
> + struct mddev *mddev, int offset,
> + int size)
> +{
> + struct bio_set *bs;
> +
> + if (!mddev || !mddev->bio_set)
> + bs = fs_bio_set;
> + else
> + bs = mddev->bio_set;
> +
> + return bio_clone_bioset_partial(bio, gfp_mask, bs, offset << 9,
> + size << 9);
> +}
> +EXPORT_SYMBOL_GPL(bio_clone_slow_mddev_partial);
As far as I can tell the caller always has a mddev, and an active
mddev always has a bio_set. So let's just skip this wrapper.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] md: use bio_clone_fast() Ming Lei <tom.leiming@gmail.com> - 2017-02-05 07:30 +0100
[PATCH 4/4] md: fast clone bio in bio_clone_mddev() Ming Lei <tom.leiming@gmail.com> - 2017-02-05 07:30 +0100
Re: [PATCH 4/4] md: fast clone bio in bio_clone_mddev() Christoph Hellwig <hch@infradead.org> - 2017-02-06 10:20 +0100
Re: [PATCH 4/4] md: fast clone bio in bio_clone_mddev() Ming Lei <tom.leiming@gmail.com> - 2017-02-06 11:50 +0100
Re: [PATCH 4/4] md: fast clone bio in bio_clone_mddev() Christoph Hellwig <hch@infradead.org> - 2017-02-06 15:30 +0100
[PATCH 2/4] md: introduce bio_clone_slow_mddev_partial() Ming Lei <tom.leiming@gmail.com> - 2017-02-05 07:30 +0100
Re: [PATCH 2/4] md: introduce bio_clone_slow_mddev_partial() Christoph Hellwig <hch@infradead.org> - 2017-02-06 10:00 +0100
[PATCH 1/4] block: introduce bio_clone_bioset_partial() Ming Lei <tom.leiming@gmail.com> - 2017-02-05 07:30 +0100
[PATCH 3/4] md/raid1: use bio_clone_slow_mddev_partial in case of write behind Ming Lei <tom.leiming@gmail.com> - 2017-02-05 07:30 +0100
csiph-web