Commit 6ac0b715 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

block: move struct biovec_slab to bio.c

struct biovec_slab is only used inside of bio.c, so move it there.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent dc0b8a57
......@@ -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
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment