]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit10e13af50e63e91608742651b0800eba266d4a37
tree11ae0111ded8dd78dd66d6125c8ef877e312deb1
parentc48a2eb9aae279145e394a8103802e29e77b575c
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