Thread (15 messages) flat view 15 messages, 3 authors, 2021-02-08
STALE2044d

[PATCH 02/11] block: move struct biovec_slab to bio.c

From: Christoph Hellwig <hch@lst.de>
Date: 2021-02-02 17:23:54
Also in: linux-raid
Subsystem: block layer, the rest · Maintainers: Jens Axboe, Linus Torvalds

struct biovec_slab is only used inside of bio.c, so move it there.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/bio.c         | 6 ++++++
 include/linux/bio.h | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/block/bio.c b/block/bio.c
index cee2d310f02e78..2c359dadfdf6dc 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -25,6 +25,12 @@
 #include "blk.h"
 #include "blk-rq-qos.h"
 
+struct biovec_slab {
+	int nr_vecs;
+	char *name;
+	struct kmem_cache *slab;
+};
+
 /*
  * if you change this list, also change bvec_alloc or things will
  * break badly! cannot be bigger than what you can fit into an
diff --git a/include/linux/bio.h b/include/linux/bio.h
index c74857cf12528c..4a84207dd99663 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -720,12 +720,6 @@ struct bio_set {
 	struct workqueue_struct	*rescue_workqueue;
 };
 
-struct biovec_slab {
-	int nr_vecs;
-	char *name;
-	struct kmem_cache *slab;
-};
-
 static inline bool bioset_initialized(struct bio_set *bs)
 {
 	return bs->bio_slab != NULL;
-- 
2.29.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help