OSDN Git Service

block: use bi_max_vecs to find the bvec pool
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 17:19:29 +0000 (18:19 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Feb 2021 15:33:16 +0000 (08:33 -0700)
commit7a800a20ae6329e803c5c646b20811a6ae9ca136
tree9c72ec387e817945bde72c5b2e75e633688509c9
parent72b043654ba8b8ce2e0cf3da49247b2db3acb2c1
block: use bi_max_vecs to find the bvec pool

Instead of encoding of the bvec pool using magic bio flags, just use
a helper to find the pool based on the max_vecs value.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c
block/bio.c
block/blk.h
include/linux/bio.h
include/linux/blk_types.h