Re: [PATCH 1/5] bio: add allocation cache abstraction

Christoph Hellwig
2021-08-11T08:35:35Z

> +static inline void __bio_init(struct bio *bio)
> +{

> +}
> +
> /*
> * Users of this function have their own bio allocation. Subsequently,
> * they must remember to pair any call to bio_init() with bio_uninit()
> @@ -246,7 +275,7 @@ static void bio_free(struct bio *bio)
> void bio_init(struct bio *bio, struct bio_vec *table,
> unsigned short max_vecs)
> {
> - memset(bio, 0, sizeof(*bio));
> + __bio_init(bio);

Please split this into a separate, well-documented prep patch.