diff options
| author | Javier Gonzalez <[email protected]> | 2015-11-20 13:47:57 +0100 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2015-11-20 08:33:21 -0700 |
| commit | 2fde0e482db2b43bb4ed0e9aebfbe78ebcbbf5a6 (patch) | |
| tree | c4dff376fb73f7d473152cd727a17b64827fdd31 /include/linux | |
| parent | 0b59733b95f9d7af6bee6e6a4d0d444eb694c514 (diff) | |
lightnvm: add free and bad lun info to show luns
Add free block, used block, and bad block information to the show debug
interface. This information is used to debug how targets track blocks.
Also, change debug function name to make it more generic.
Signed-off-by: Javier Gonzalez <[email protected]>
Signed-off-by: Matias Bjørling <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/lightnvm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index 831a20cf070c..3db5552b17d5 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -380,7 +380,7 @@ typedef int (nvmm_end_io_fn)(struct nvm_rq *, int); typedef int (nvmm_erase_blk_fn)(struct nvm_dev *, struct nvm_block *, unsigned long); typedef struct nvm_lun *(nvmm_get_lun_fn)(struct nvm_dev *, int); -typedef void (nvmm_free_blocks_print_fn)(struct nvm_dev *); +typedef void (nvmm_lun_info_print_fn)(struct nvm_dev *); struct nvmm_type { const char *name; @@ -404,7 +404,7 @@ struct nvmm_type { nvmm_get_lun_fn *get_lun; /* Statistics */ - nvmm_free_blocks_print_fn *free_blocks_print; + nvmm_lun_info_print_fn *lun_info_print; struct list_head list; }; |