Re: [PATCH 1/6] block: manage bio slab cache by xarray

2021-01-04 Thread Christoph Hellwig
On Wed, Dec 30, 2020 at 08:32:50AM +0800, Ming Lei wrote: > Managing bio slab cache via xarray by using slab cache size as xarray index, > and Overly long line in the commit log above. > +static struct bio_slab *create_bio_slab(unsigned int size) > +{ > + struct bio_slab *bslab = kzalloc(siz

[PATCH 1/6] block: manage bio slab cache by xarray

2020-12-29 Thread Ming Lei
Managing bio slab cache via xarray by using slab cache size as xarray index, and storing 'struct bio_slab' instance into xarray. So code is simplified a lot, meantime is is more readable than before. Signed-off-by: Ming Lei --- block/bio.c | 104 +