lightnvm: fix incorrect nr_free_blocks stat
authorChao Yu <chao2.yu@samsung.com>
Tue, 12 Jan 2016 06:49:16 +0000 (07:49 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jan 2016 15:21:15 +0000 (08:21 -0700)
commitbdded1552085b12d23c9be76147d2e96647a098f
tree96fa04d75f82de069dadf66569a611e24e2c3848
parent3cd485b1f8e25a6534eb4c542e7eba1b944fbaaf
lightnvm: fix incorrect nr_free_blocks stat

When initing bad block list in gennvm_block_bb, once we move bad block
from free_list to bb_list, we should maintain both stat info
nr_free_blocks and nr_bad_blocks. So this patch fixes to add missing
operation related to nr_free_blocks.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/gennvm.c