lightnvm: introduce helpers for generic ops in rrpc
authorJavier González <jg@lightnvm.io>
Mon, 28 Nov 2016 21:39:11 +0000 (22:39 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 29 Nov 2016 19:12:51 +0000 (12:12 -0700)
commit959e911b31981b52ed3f3d6e351b107bcb9163ef
tree52f99be3c1f8fb556f3314b702547929d2f0559b
parent8e53624d44c1de31b1b0d4f500703669418a4c67
lightnvm: introduce helpers for generic ops in rrpc

Avoid calling media manager and device-specific operations directly from
rrpc. Create helper functions on lightnvm's core instead.

Signed-off-by: Javier González <javier@cnexlabs.com>
Made it work with null_blk as well.
Signed-off-by: Matias Bjørling <m@bjorling.me>
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
include/linux/lightnvm.h