mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
lightnvm: use constant name instead of value
There is a constant to refer to free blocks. Use it when marking bad blocks instead of using a constant value Signed-off-by: Javier González <[email protected]> Signed-off-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
eb00352b52
commit
98379a12c5
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ static int gen_block_bb(struct gen_dev *gn, struct ppa_addr ppa,
|
|||
lun = &gn->luns[(dev->luns_per_chnl * ppa.g.ch) + ppa.g.lun];
|
||||
|
||||
for (i = 0; i < nr_blks; i++) {
|
||||
if (blks[i] == 0)
|
||||
if (blks[i] == NVM_BLK_T_FREE)
|
||||
continue;
|
||||
|
||||
blk = &lun->vlun.blocks[i];
|
||||
|
|
|
|||
Loading…
Reference in a new issue