summaryrefslogtreecommitdiffstats
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
authorJavier González <jg@lightnvm.io>2016-11-28 16:39:07 -0500
committerJens Axboe <axboe@fb.com>2016-11-29 14:12:51 -0500
commit0ac4072eb10c9627415eb1ca511121156e20012c (patch)
treea2581ae27e54d08e0f95bdff8712fd5daade109e /include/linux/lightnvm.h
parent8e79b5cb1d3b8eceaf6862995952dd4de431dd99 (diff)
lightnvm: remove get_lun operation on gennvm
Since LUNs are managed internally on the target, there is no need for the media manager to implement a get_lun operation. Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r--include/linux/lightnvm.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index 1f1588c2557e..e56c35227249 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -504,8 +504,8 @@ static inline int ppa_to_slc(struct nvm_dev *dev, int slc_pg)
504 504
505typedef blk_qc_t (nvm_tgt_make_rq_fn)(struct request_queue *, struct bio *); 505typedef blk_qc_t (nvm_tgt_make_rq_fn)(struct request_queue *, struct bio *);
506typedef sector_t (nvm_tgt_capacity_fn)(void *); 506typedef sector_t (nvm_tgt_capacity_fn)(void *);
507typedef void *(nvm_tgt_init_fn)(struct nvm_tgt_dev *, struct gendisk *, int, 507typedef void *(nvm_tgt_init_fn)(struct nvm_tgt_dev *, struct gendisk *,
508 int); 508 struct list_head *lun_list);
509typedef void (nvm_tgt_exit_fn)(void *); 509typedef void (nvm_tgt_exit_fn)(void *);
510 510
511struct nvm_tgt_type { 511struct nvm_tgt_type {
@@ -541,7 +541,6 @@ typedef int (nvmm_remove_tgt_fn)(struct nvm_dev *, struct nvm_ioctl_remove *);
541typedef int (nvmm_submit_io_fn)(struct nvm_dev *, struct nvm_rq *); 541typedef int (nvmm_submit_io_fn)(struct nvm_dev *, struct nvm_rq *);
542typedef int (nvmm_erase_blk_fn)(struct nvm_dev *, struct nvm_block *, int); 542typedef int (nvmm_erase_blk_fn)(struct nvm_dev *, struct nvm_block *, int);
543typedef void (nvmm_mark_blk_fn)(struct nvm_dev *, struct ppa_addr, int); 543typedef void (nvmm_mark_blk_fn)(struct nvm_dev *, struct ppa_addr, int);
544typedef struct nvm_lun *(nvmm_get_lun_fn)(struct nvm_dev *, int);
545typedef void (nvmm_lun_info_print_fn)(struct nvm_dev *); 544typedef void (nvmm_lun_info_print_fn)(struct nvm_dev *);
546 545
547typedef int (nvmm_get_area_fn)(struct nvm_dev *, sector_t *, sector_t); 546typedef int (nvmm_get_area_fn)(struct nvm_dev *, sector_t *, sector_t);
@@ -563,9 +562,6 @@ struct nvmm_type {
563 /* Bad block mgmt */ 562 /* Bad block mgmt */
564 nvmm_mark_blk_fn *mark_blk; 563 nvmm_mark_blk_fn *mark_blk;
565 564
566 /* Configuration management */
567 nvmm_get_lun_fn *get_lun;
568
569 /* Statistics */ 565 /* Statistics */
570 nvmm_lun_info_print_fn *lun_info_print; 566 nvmm_lun_info_print_fn *lun_info_print;
571 567