Skip to contentSkip to conversation

Patch "[PATCH 028/135] lightnvm: fix incorrect nr_free_blocks stat" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Sep 9, 2016 Stable branch

lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

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 <[email protected]> know about it.

Quoted 1 line

From 84f44c75c7e0dc3903563e33428cb23970e91ce7 Mon Sep 17 00:00:00 2001

From: Chao Yu <[email protected]>
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.

---
 drivers/lightnvm/gennvm.c |    1 +
 1 file changed, 1 insertion(+)
drivers/lightnvm/gennvm.c +1 -0
@@ -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 [email protected] are

queue-4.4/0028-lightnvm-fix-incorrect-nr_free_blocks-stat.patch