> +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.