diff options
author | Matias Bjørling <m@bjorling.me> | 2016-01-12 09:49:32 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-01-12 18:21:17 +0300 |
commit | b5d4acd4cbf5029a2616084d9e9f392046d53a37 (patch) | |
tree | 464732fda2eee2b2f08d66b5241e998b36b65288 /include/linux/lightnvm.h | |
parent | d7a64d275b39e19c010cdfd8728cc64f14b59bda (diff) | |
download | linux-b5d4acd4cbf5029a2616084d9e9f392046d53a37.tar.xz |
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>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r-- | include/linux/lightnvm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index b7001481e207..4a700a137460 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -58,8 +58,9 @@ enum { /* Block Types */ NVM_BLK_T_FREE = 0x0, 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 { |