]> 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)
commit1c9f72f8f9f1c099464c8c0591f869c59c4f356b
treec7974069275f06d340ad7b14f0cb69479bad6110
parente2b83441e3686fdff6772cf02f174345e8a666e2
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