]> 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)
commit56ade863780c5fb40ea4564dabcac11b459d8176
tree52206e7eaf4361ae448f3ee3e37038299ad31a14
parent67e8082898e03186900dea726f79ddbf13cc442a
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