summaryrefslogtreecommitdiffstats
path: root/block/bio.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-02-02 18:19:19 +0100
committerJens Axboe <axboe@kernel.dk>2021-02-08 08:33:15 -0700
commitdc0b8a57ad7b05036fcb19a5bf0319467597e67a (patch)
treef1b7d4e71d45c0822ee0230d1bdedb29e4f7dcae /block/bio.c
parent8358c28a5d44bf0223a55a2334086c3707bb4185 (diff)
downloadlinux-dc0b8a57ad7b05036fcb19a5bf0319467597e67a.tar.gz
linux-dc0b8a57ad7b05036fcb19a5bf0319467597e67a.tar.bz2
linux-dc0b8a57ad7b05036fcb19a5bf0319467597e67a.zip
block: reuse BIO_INLINE_VECS for integrity bvecs
bvec_alloc always uses biovec_slabs, and thus always needs to use the same number of inline vecs. Share a single definition for the data and integrity bvecs. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/block/bio.c b/block/bio.c
index 757fee46cefc..cee2d310f02e 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -26,12 +26,6 @@
#include "blk-rq-qos.h"
/*
- * Test patch to inline a certain number of bi_io_vec's inside the bio
- * itself, to shrink a bio data allocation from two mempool calls to one
- */
-#define BIO_INLINE_VECS 4
-
-/*
* if you change this list, also change bvec_alloc or things will
* break badly! cannot be bigger than what you can fit into an
* unsigned short