lightnvm: do not protect block 0
authorJavier González <jg@lightnvm.io>
Mon, 28 Nov 2016 21:38:55 +0000 (22:38 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 29 Nov 2016 19:12:51 +0000 (12:12 -0700)
commiteedc8f35eb0749843903bb774a392f538bba9419
tree8ef1274d42b4d4034c09e9f752a688c0e1bd2b4f
parentd57d20a2e25685178f6325ec9c4100685769435a
lightnvm: do not protect block 0

Device blocks should be marked by the device and considered as bad
blocks by the media manager. Thus, do not make assumptions on which
blocks are going to be used by the device. In doing so we might lose
valid blocks from the free list.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/gennvm.c