Explorar o código

lightnvm: fix missing grown bad block type

The get/set bad block interface defines good block, factory bad block,
grown bad block, device reserved block, and host reserved block.
Unfortunately the grown bad block was missing, leaving the offsets wrong
for device and host side reserved blocks.

This patch adds the missing type and corrects the offsets.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Matias Bjørling %!s(int64=10) %!d(string=hai) anos
pai
achega
b5d4acd4cb
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      include/linux/lightnvm.h

+ 3 - 2
include/linux/lightnvm.h

@@ -58,8 +58,9 @@ enum {
 	/* Block Types */
 	/* Block Types */
 	NVM_BLK_T_FREE		= 0x0,
 	NVM_BLK_T_FREE		= 0x0,
 	NVM_BLK_T_BAD		= 0x1,
 	NVM_BLK_T_BAD		= 0x1,
-	NVM_BLK_T_DEV		= 0x2,
-	NVM_BLK_T_HOST		= 0x4,
+	NVM_BLK_T_GRWN_BAD	= 0x2,
+	NVM_BLK_T_DEV		= 0x4,
+	NVM_BLK_T_HOST		= 0x8,
 };
 };
 
 
 struct nvm_id_group {
 struct nvm_id_group {