lightnvm: make address conversion functions global
authorJavier González <jg@lightnvm.io>
Mon, 28 Nov 2016 21:39:01 +0000 (22:39 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 29 Nov 2016 19:12:51 +0000 (12:12 -0700)
commit0e5c3246dbb96b6870634e7d51b2490f05c976cf
tree3e1005bd6eabd736841b6c9e95cf555558bc58d2
parent7e4f64a9b3004ce592f21653c3b7781628862232
lightnvm: make address conversion functions global

Targets are assumed to used the same generic ppa format, where the
address is partitioned on ch:lun:block:pg:pl:sec. Thus, make the
function in charge of transforming the ppa address from a linear format
to the generic one available to all targets.

This function will be needed by the media manager in order to do target
mapping translations when targets are divided on different physical
partitions.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/rrpc.c
include/linux/lightnvm.h