Skip to content

Commit

Permalink
lightnvm: pblk: enable line minor version detection
Browse files Browse the repository at this point in the history
When recovering a line, an extra check was added when debugging was
active, such that minor version where also checked. Unfortunately,
this used the ifdef NVM_DEBUG, which is not correct.

Instead use the proper DEBUG def, and now that it compiles, also fix
the variable.

Signed-off-by: Matias Bjørling <[email protected]>
Fixes: d0ab0b1 ("lightnvm: pblk: check data lines version on recovery")
Reviewed-by: Javier González <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
MatiasBjorling authored and axboe committed Jul 13, 2018
1 parent 880eda5 commit 99b8dad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/lightnvm/pblk-recovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,9 +742,10 @@ static int pblk_recov_check_line_version(struct pblk *pblk,
return 1;
}

#ifdef NVM_DEBUG
#ifdef CONFIG_NVM_PBLK_DEBUG
if (header->version_minor > EMETA_VERSION_MINOR)
pr_info("pblk: newer line minor version found: %d\n", line_v);
pr_info("pblk: newer line minor version found: %d\n",
header->version_minor);
#endif

return 0;
Expand Down

0 comments on commit 99b8dad

Please sign in to comment.