OSDN Git Service

block: streamline bvec_alloc
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 17:19:22 +0000 (18:19 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Feb 2021 15:33:16 +0000 (08:33 -0700)
commitf007a3d66c5480c8dae3fa20a89a06861ef1f5db
tree11ae0111ded8dd78dd66d6125c8ef877e312deb1
parentf2c3eb9bb0ef77517976f8be926a77a574da8fe3
block: streamline bvec_alloc

Avoid the pointless goto by trying the slab allocation first and falling
through to the mempool.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c