commit | 92957091e93931c91fccb7cce456312edeeea36c | [log] [tgz] |
---|---|---|
author | Hans Holmberg <hans.holmberg@cnexlabs.com> | Fri Oct 13 14:46:35 2017 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Oct 13 08:34:57 2017 -0600 |
tree | 0ff2cdcde708041278aeb8dc28144432f2304545 | |
parent | 3e3a5b8ebd5d3b1d68facc58b0674a2564653222 [diff] |
lightnvm: pblk: recover partially written lines correctly When recovering partially written lines, the valid sector count must be decreased by the number of padded sectors in the line. Update line recovery to take all ADDR_EMPTY(padded) sectors into account. Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>