mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
lightnvm: introduce max_phys_sects helper function
Target devices do not have access to the device driver operations. Introduce a helper function that exposes the max. number of physical sectors supported by the underlying 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>
This commit is contained in:
parent
959e911b31
commit
a279006afa
2 changed files with 9 additions and 0 deletions
|
@ -529,6 +529,7 @@ extern void nvm_unregister(struct nvm_dev *);
|
|||
extern int nvm_set_bb_tbl(struct nvm_dev *dev, struct ppa_addr *ppas,
|
||||
int nr_ppas, int type);
|
||||
|
||||
extern int nvm_max_phys_sects(struct nvm_tgt_dev *);
|
||||
extern int nvm_submit_io(struct nvm_tgt_dev *, struct nvm_rq *);
|
||||
extern void nvm_generic_to_addr_mode(struct nvm_dev *, struct nvm_rq *);
|
||||
extern void nvm_addr_to_generic_mode(struct nvm_dev *, struct nvm_rq *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue