summaryrefslogtreecommitdiff
path: root/include/linux/blk_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-21 17:59:13 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-03-21 18:21:31 -0400
commit205d75307a7c71f3807c8aa74405cd7267a40e4b (patch)
tree543393e689a19e40c8bfb02bc528a0358d54988b /include/linux/blk_types.h
parentb2a9318aa86edfe267805890c5ff1511caa59e70 (diff)
Better bio_alloc_bioset()
bio_alloc_bioset() now uses mempools, so we don't segfault on memory allocation failure. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'include/linux/blk_types.h')
-rw-r--r--include/linux/blk_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index be736c8c..2d137e50 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -65,6 +65,8 @@ typedef u8 __bitwise blk_status_t;
#define BLK_STS_AGAIN ((__force blk_status_t)12)
+#define BIO_INLINE_VECS 4
+
/*
* main unit of I/O for the block layer and lower layers (ie drivers and
* stacking drivers)