]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: guarantee emeta on line close
authorJavier González <javier@javigon.com>
Tue, 9 Oct 2018 11:11:45 +0000 (13:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Oct 2018 14:25:06 +0000 (08:25 -0600)
commit5be3864584d30e71f37186b0e8fff95f908eb024
tree5dcd03a5affc93a3bdfa7c989a436e56f3635882
parentb278d021ed90795913051795329d85a6baee3981
lightnvm: pblk: guarantee emeta on line close

If a line is recovered from open chunks, the memory structures for
emeta have not necessarily been properly set on line initialization.
When closing a line, make sure that emeta is consistent so that the line
can be recovered on the fast path on next reboot.

Also, remove a couple of empty lines at the end of the function.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c