提交 6ac0b715 编写于 作者: C Christoph Hellwig 提交者: 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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册