diff options
author | Javier González <javier@javigon.com> | 2018-06-01 16:04:22 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-01 16:43:53 +0300 |
commit | 8e55c07b2b9c24f1154dafd9a01befc00430df1e (patch) | |
tree | 4016f451b59c5dc280c10bc2e58925272fda8f80 /drivers/lightnvm/pblk-core.c | |
parent | e13f421ba81b970f0952b2911bfc34aa9db5197f (diff) | |
download | linux-8e55c07b2b9c24f1154dafd9a01befc00430df1e.tar.xz |
lightnvm: pblk: remove unnecessary argument
Remove unnecessary argument on pblk_line_free()
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>
Diffstat (limited to 'drivers/lightnvm/pblk-core.c')
-rw-r--r-- | drivers/lightnvm/pblk-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index 9a70cfe18934..26f3c14ad799 100644 --- a/drivers/lightnvm/pblk-core.c +++ b/drivers/lightnvm/pblk-core.c @@ -1337,7 +1337,7 @@ retry: retry_line->emeta = line->emeta; retry_line->meta_line = line->meta_line; - pblk_line_free(pblk, line); + pblk_line_free(line); l_mg->data_line = retry_line; spin_unlock(&l_mg->free_lock); @@ -1562,7 +1562,7 @@ out: return new; } -void pblk_line_free(struct pblk *pblk, struct pblk_line *line) +void pblk_line_free(struct pblk_line *line) { kfree(line->map_bitmap); kfree(line->invalid_bitmap); @@ -1584,7 +1584,7 @@ static void __pblk_line_put(struct pblk *pblk, struct pblk_line *line) WARN_ON(line->state != PBLK_LINESTATE_GC); line->state = PBLK_LINESTATE_FREE; line->gc_group = PBLK_LINEGC_NONE; - pblk_line_free(pblk, line); + pblk_line_free(line); spin_unlock(&line->lock); atomic_dec(&gc->pipeline_gc); |