]> git.karo-electronics.de Git - linux-beck.git/commit
lightnvm: export set bad block table
authorJavier González <jg@lightnvm.io>
Mon, 28 Nov 2016 21:38:56 +0000 (22:38 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 29 Nov 2016 19:12:51 +0000 (12:12 -0700)
commita24ba4644b7ae5af3cd2eb6992c237cb4548c45e
tree63bf226681a0618d1c11642835f347c156a58421
parent8a3c95ab385fb98621455807ae52b4454192f8c5
lightnvm: export set bad block table

Bad blocks should be managed by block owners. This would be either
targets for data blocks or sysblk for system blocks.

In order to support this, export two functions: One to mark a block as
an specific type (e.g., bad block) and another to update the bad block
table on the device.

Move bad block management to rrpc.

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/core.c
drivers/lightnvm/gennvm.c
drivers/lightnvm/rrpc.c
drivers/lightnvm/sysblk.c
include/linux/lightnvm.h