diff options
author | Javier González <jg@lightnvm.io> | 2016-11-28 22:39:13 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-11-29 20:12:51 +0100 |
commit | da2d7cb828ce2714c603827ac5a6e1c98a02e861 (patch) | |
tree | bd15a53bc10f800acf7b9d8e2f37bcf105e369bb /drivers/lightnvm/rrpc.h | |
parent | lightnvm: introduce max_phys_sects helper function (diff) | |
download | linux-da2d7cb828ce2714c603827ac5a6e1c98a02e861.tar.xz linux-da2d7cb828ce2714c603827ac5a6e1c98a02e861.zip |
lightnvm: use target nvm on target-specific ops.
On target-specific operations pass on nvm_tgt_dev instead of the generic
nvm device.
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>
Diffstat (limited to 'drivers/lightnvm/rrpc.h')
-rw-r--r-- | drivers/lightnvm/rrpc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/rrpc.h b/drivers/lightnvm/rrpc.h index bc8adba4d63f..94e4d73116b2 100644 --- a/drivers/lightnvm/rrpc.h +++ b/drivers/lightnvm/rrpc.h @@ -184,7 +184,7 @@ static inline struct ppa_addr rrpc_linear_to_generic_addr(struct nvm_geo *geo, return l; } -static inline struct ppa_addr rrpc_recov_addr(struct nvm_dev *dev, u64 pba) +static inline struct ppa_addr rrpc_recov_addr(struct nvm_tgt_dev *dev, u64 pba) { return linear_to_generic_addr(&dev->geo, pba); } |