]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: add helpers for chunk addresses
authorJavier González <javier@javigon.com>
Tue, 9 Oct 2018 11:11:41 +0000 (13:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Oct 2018 14:25:06 +0000 (08:25 -0600)
commit823abf19b6c93e454ddba7d84c9d62f60f42f53b
tree52206e7eaf4361ae448f3ee3e37038299ad31a14
parent7b77acee3b8bca02823c94d7a7fe5ad194ecabfa
lightnvm: pblk: add helpers for chunk addresses

Implement helpers to go from ppas to a chunk within a line and an
address within a chunk.

These helpers will be used on the patches adding trace support in pblk,
which will be sent in this window.

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.h
include/linux/lightnvm.h