block: move struct biovec_slab to bio.c
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 17:19:20 +0000 (18:19 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Feb 2021 15:33:16 +0000 (08:33 -0700)
struct biovec_slab is only used inside of bio.c, so move it there.

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

index cee2d31..2c359da 100644 (file)
 #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
index c74857c..4a84207 100644 (file)
@@ -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;