diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-21 01:25:50 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-05-31 00:33:32 +0300 |
commit | b906bbb6997785d9ea0bd3f5585537afa6257c43 (patch) | |
tree | 200a8a5225326e11ee47a40b7481f2734cba38cd /drivers/lightnvm/pblk.h | |
parent | 64c4bc4de79fec06bb46d9827e7c4df67a025590 (diff) | |
download | linux-b906bbb6997785d9ea0bd3f5585537afa6257c43.tar.xz |
lightnvm: convert to bioset_init()/mempool_init()
Convert lightnvm to embedded bio sets.
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk.h')
-rw-r--r-- | drivers/lightnvm/pblk.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h index 9c682acfc5d1..feafa4de264d 100644 --- a/drivers/lightnvm/pblk.h +++ b/drivers/lightnvm/pblk.h @@ -664,12 +664,12 @@ struct pblk { struct list_head compl_list; - mempool_t *page_bio_pool; - mempool_t *gen_ws_pool; - mempool_t *rec_pool; - mempool_t *r_rq_pool; - mempool_t *w_rq_pool; - mempool_t *e_rq_pool; + mempool_t page_bio_pool; + mempool_t gen_ws_pool; + mempool_t rec_pool; + mempool_t r_rq_pool; + mempool_t w_rq_pool; + mempool_t e_rq_pool; struct workqueue_struct *close_wq; struct workqueue_struct *bb_wq; @@ -841,7 +841,7 @@ void pblk_write_should_kick(struct pblk *pblk); /* * pblk read path */ -extern struct bio_set *pblk_bio_set; +extern struct bio_set pblk_bio_set; int pblk_submit_read(struct pblk *pblk, struct bio *bio); int pblk_submit_read_gc(struct pblk *pblk, struct pblk_gc_rq *gc_rq); /* |