]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
lightnvm: fix incorrect nr_free_blocks stat
authorChao Yu <chao2.yu@samsung.com>
Tue, 12 Jan 2016 06:49:16 +0000 (07:49 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 15:58:25 +0000 (08:58 -0700)
commit5466e395c97cdf8195a7b492d7192849aeaefca7
tree084bf62ec151880cc66af7ff0955631525983615
parent5cd9b45b1aeeeae6d4068bac34714d3aaeae663a
lightnvm: fix incorrect nr_free_blocks stat

BugLink: http://bugs.launchpad.net/bugs/1531539
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>
(cherry picked from commit bdded1552085b12d23c9be76147d2e96647a098f)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/lightnvm/gennvm.c