From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:34251 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbcIINjG (ORCPT ); Fri, 9 Sep 2016 09:39:06 -0400 Subject: Patch "[PATCH 028/135] lightnvm: fix incorrect nr_free_blocks stat" has been added to the 4.4-stable tree To: chao2.yu@samsung.com, alexander.levin@verizon.com, axboe@fb.com, gregkh@linuxfoundation.org, m@bjorling.me Cc: , From: Date: Fri, 09 Sep 2016 15:37:57 +0200 Message-ID: <147342827789230@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled [PATCH 028/135] lightnvm: fix incorrect nr_free_blocks stat to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: 0028-lightnvm-fix-incorrect-nr_free_blocks-stat.patch and it can be found in the queue-4.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 84f44c75c7e0dc3903563e33428cb23970e91ce7 Mon Sep 17 00:00:00 2001 From: Chao Yu Date: Tue, 12 Jan 2016 07:49:16 +0100 Subject: [PATCH 028/135] lightnvm: fix incorrect nr_free_blocks stat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ Upstream commit bdded1552085b12d23c9be76147d2e96647a098f ] 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 Signed-off-by: Matias Bjørling Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/lightnvm/gennvm.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/lightnvm/gennvm.c +++ b/drivers/lightnvm/gennvm.c @@ -89,6 +89,7 @@ static int gennvm_block_bb(struct ppa_ad list_move_tail(&blk->list, &lun->bb_list); lun->vlun.nr_bad_blocks++; + lun->vlun.nr_free_blocks--; } return 0; Patches currently in stable-queue which might be from chao2.yu@samsung.com are queue-4.4/0028-lightnvm-fix-incorrect-nr_free_blocks-stat.patch