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 15:01:17 +0000 (08:01 -0700)
commit4787b91bad3ae2a23311b35d81efd1b92576a2a9
tree3e1005bd6eabd736841b6c9e95cf555558bc58d2
parent0371299d43ee3b00d86bff8199bfcdf4e12b2705
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