]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: improve line helpers
authorJavier González <javier@javigon.com>
Tue, 9 Oct 2018 11:11:42 +0000 (13:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Oct 2018 14:25:06 +0000 (08:25 -0600)
commit6c9c4ff1a9658d7bd18e79d9d6c87df1d3efe517
tree66f4205ee194150f918fb4588719a6b2bf7bac74
parent823abf19b6c93e454ddba7d84c9d62f60f42f53b
lightnvm: pblk: improve line helpers

The current helper to obtain a line from a ppa returns the line id,
which requires its users to explicitly retrieve the pointer to the line
with the id.

Make 2 different helpers: one returning the line id and one returning
the line directly.

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>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-rb.c
drivers/lightnvm/pblk-read.c
drivers/lightnvm/pblk-write.c
drivers/lightnvm/pblk.h