diff options
author | Matias Bjørling <m@bjorling.me> | 2016-01-12 07:49:29 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-01-12 08:21:17 -0700 |
commit | 72d256ecc5d0c8cbcc0bd5c6d983b434df556cb4 (patch) | |
tree | b33f8b9f1df32f633f75688d0f89417a3e220296 /include/linux/lightnvm.h | |
parent | 81e681d3f7424fc2f03b6269e15c63131473c98f (diff) | |
download | lwn-72d256ecc5d0c8cbcc0bd5c6d983b434df556cb4.tar.gz lwn-72d256ecc5d0c8cbcc0bd5c6d983b434df556cb4.zip |
lightnvm: move rq->error to nvm_rq->error
Instead of passing request error into the LightNVM modules, incorporate
it into the nvm_rq.
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r-- | include/linux/lightnvm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index a83298f62122..9acc71a9a47f 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -149,7 +149,7 @@ struct ppa_addr { }; struct nvm_rq; -typedef void (nvm_end_io_fn)(struct nvm_rq *, int); +typedef void (nvm_end_io_fn)(struct nvm_rq *); struct nvm_rq { struct nvm_tgt_instance *ins; @@ -173,6 +173,8 @@ struct nvm_rq { uint8_t opcode; uint16_t nr_pages; uint16_t flags; + + int error; }; static inline struct nvm_rq *nvm_rq_from_pdu(void *pdu) |