OSDN Git Service

block: manage bio slab cache by xarray
authorMing Lei <ming.lei@redhat.com>
Mon, 11 Jan 2021 03:05:52 +0000 (11:05 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 04:22:45 +0000 (21:22 -0700)
commit49d1ec8573f74ff1e23df1d5092211de46baa236
treef6f25b2b40cb3845afdd529482cc974a7cdd7978
parent1a23e06cdab2be07cbda460c6417d7de564c48e6
block: manage bio slab cache by xarray

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 it becomes more readable than before.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Tested-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c