[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170206085259.GA6411@infradead.org>
Date: Mon, 6 Feb 2017 00:52:59 -0800
From: Christoph Hellwig <hch@...radead.org>
To: Ming Lei <tom.leiming@...il.com>
Cc: Shaohua Li <shli@...nel.org>, Jens Axboe <axboe@...com>,
linux-kernel@...r.kernel.org, linux-raid@...r.kernel.org,
linux-block@...r.kernel.org, Christoph Hellwig <hch@...radead.org>,
NeilBrown <neilb@...e.com>
Subject: Re: [PATCH 2/4] md: introduce bio_clone_slow_mddev_partial()
> +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.
Powered by blists - more mailing lists