mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-02 20:29:20 +00:00
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>
This commit is contained in:
parent
8e53624d44
commit
959e911b31
4 changed files with 35 additions and 19 deletions
|
@ -320,10 +320,7 @@ struct nvm_tgt_dev {
|
|||
struct nvm_id identity;
|
||||
struct request_queue *q;
|
||||
|
||||
struct nvmm_type *mt;
|
||||
struct nvm_dev_ops *ops;
|
||||
|
||||
void *parent;
|
||||
struct nvm_dev *parent;
|
||||
void *map;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue