mirror of https://gitee.com/openkylin/linux.git
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: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
dc0b8a57ad
commit
6ac0b71537
|
@ -25,6 +25,12 @@
|
||||||
#include "blk.h"
|
#include "blk.h"
|
||||||
#include "blk-rq-qos.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
|
* if you change this list, also change bvec_alloc or things will
|
||||||
* break badly! cannot be bigger than what you can fit into an
|
* 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 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)
|
static inline bool bioset_initialized(struct bio_set *bs)
|
||||||
{
|
{
|
||||||
return bs->bio_slab != NULL;
|
return bs->bio_slab != NULL;
|
||||||
|
|
Loading…
Reference in New Issue