diff options
author | Matias Bjørling <m@bjorling.me> | 2018-01-05 14:15:59 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-05 08:50:12 -0700 |
commit | 26f76dce60d28028e5c1fbbc39e771366a27671f (patch) | |
tree | 73ffacd9cbc25874b4b77c1a7ef7041247ece495 /drivers/lightnvm/pblk-map.c | |
parent | aba203d155c1d58c871c7ad4bea320fb6ff5e68f (diff) | |
download | linux-26f76dce60d28028e5c1fbbc39e771366a27671f.tar.gz linux-26f76dce60d28028e5c1fbbc39e771366a27671f.tar.bz2 linux-26f76dce60d28028e5c1fbbc39e771366a27671f.zip |
lightnvm: use internal pblk methods
Now that rrpc has been removed, the only users of the ppa helpers
is pblk. However, pblk already defines similar functions.
Switch pblk to use the internal ones, and remove the generic ppa
helpers.
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk-map.c')
-rw-r--r-- | drivers/lightnvm/pblk-map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/pblk-map.c b/drivers/lightnvm/pblk-map.c index 6f3ecde2140f..7445e6430c52 100644 --- a/drivers/lightnvm/pblk-map.c +++ b/drivers/lightnvm/pblk-map.c @@ -146,7 +146,7 @@ void pblk_map_erase_rq(struct pblk *pblk, struct nvm_rq *rqd, return; /* Erase blocks that are bad in this line but might not be in next */ - if (unlikely(ppa_empty(*erase_ppa)) && + if (unlikely(pblk_ppa_empty(*erase_ppa)) && bitmap_weight(d_line->blk_bitmap, lm->blk_per_line)) { int bit = -1; |