]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6205670890b8088ab84ad5ac4eb04a242e54f878
treef6f25b2b40cb3845afdd529482cc974a7cdd7978
parent1ad23903bf81fa2863834539d42a9bb38bb9300d
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