mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
lightnvm: remove debug lun statistics from gennvm
Since LUNs are managed internally on targets, the media manager has no access to the free LUN lists. Thus, debug functions that show LUN information on the device should not be implemented on the media manager, but rather on the target in itself. Signed-off-by: Javier González <[email protected]> Signed-off-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
0ac4072eb1
commit
eec44565e9
2 changed files with 0 additions and 24 deletions
|
|
@ -613,23 +613,6 @@ static int gen_erase_blk(struct nvm_dev *dev, struct nvm_block *blk, int flags)
|
|||
return nvm_erase_ppa(dev, &addr, 1, flags);
|
||||
}
|
||||
|
||||
static void gen_lun_info_print(struct nvm_dev *dev)
|
||||
{
|
||||
struct gen_dev *gn = dev->mp;
|
||||
struct nvm_lun *lun;
|
||||
unsigned int i;
|
||||
|
||||
|
||||
gen_for_each_lun(gn, lun, i) {
|
||||
spin_lock(&lun->lock);
|
||||
|
||||
pr_info("%s: lun%8u\t%u\n", dev->name, i,
|
||||
lun->nr_free_blocks);
|
||||
|
||||
spin_unlock(&lun->lock);
|
||||
}
|
||||
}
|
||||
|
||||
static struct nvmm_type gen = {
|
||||
.name = "gennvm",
|
||||
.version = {0, 1, 0},
|
||||
|
|
@ -645,8 +628,6 @@ static struct nvmm_type gen = {
|
|||
|
||||
.mark_blk = gen_mark_blk,
|
||||
|
||||
.lun_info_print = gen_lun_info_print,
|
||||
|
||||
.get_area = gen_get_area,
|
||||
.put_area = gen_put_area,
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue