> +static inline unsigned bio_segments_all(struct bio *bio) > +{ > + WARN_ON_ONCE(bio_flagged(bio, BIO_CLONED)); > + > + return bio->bi_vcnt; > +} I don't think this helpers really adds any benefit. -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html