OSDN Git Service

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)
commit2cf99bbd106f89fc72f778e8ad9d5538f1ef939b
tree52206e7eaf4361ae448f3ee3e37038299ad31a14
parentae14cc044b5988148d819c377fd0cc1c7504bc3c
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