]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: remove linear and device addr modes
authorMatias Bjørling <m@bjorling.me>
Mon, 16 Nov 2015 14:34:44 +0000 (15:34 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 16 Nov 2015 22:20:34 +0000 (15:20 -0700)
commit9516fa2effe8d927e7fd3821c5c68a7b1bcdcdf0
treec7974069275f06d340ad7b14f0cb69479bad6110
parent0c552e93b7e53f2334d2ace2028ccd24f5e187b4
lightnvm: remove linear and device addr modes

The linear and device specific address modes can be replaced with a
simple offset and bit length conversion that is generic across all
devices.

This both simplifies the specification and removes the special case for
qemu nvme, that previously relied on the linear address mapping.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
drivers/lightnvm/gennvm.c
drivers/lightnvm/rrpc.c
drivers/nvme/host/lightnvm.c
include/linux/lightnvm.h