summaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm/core.c
diff options
context:
space:
mode:
authorJavier Gonzalez <javier@javigon.com>2015-11-20 13:47:57 +0100
committerJens Axboe <axboe@fb.com>2015-11-20 08:33:21 -0700
commit2fde0e482db2b43bb4ed0e9aebfbe78ebcbbf5a6 (patch)
treec4dff376fb73f7d473152cd727a17b64827fdd31 /drivers/lightnvm/core.c
parent0b59733b95f9d7af6bee6e6a4d0d444eb694c514 (diff)
downloadlinux-2fde0e482db2b43bb4ed0e9aebfbe78ebcbbf5a6.tar.bz2
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 <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm/core.c')
-rw-r--r--drivers/lightnvm/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c
index f61d325fd978..5178645ac42b 100644
--- a/drivers/lightnvm/core.c
+++ b/drivers/lightnvm/core.c
@@ -544,7 +544,7 @@ static int nvm_configure_show(const char *val)
if (!dev->mt)
return 0;
- dev->mt->free_blocks_print(dev);
+ dev->mt->lun_info_print(dev);
return 0;
}