diff options
author | Matias Bjørling <m@bjorling.me> | 2016-01-12 01:49:29 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-01-12 10:21:17 -0500 |
commit | 72d256ecc5d0c8cbcc0bd5c6d983b434df556cb4 (patch) | |
tree | b33f8b9f1df32f633f75688d0f89417a3e220296 /include/linux/lightnvm.h | |
parent | 81e681d3f7424fc2f03b6269e15c63131473c98f (diff) |
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 { | |||
149 | }; | 149 | }; |
150 | 150 | ||
151 | struct nvm_rq; | 151 | struct nvm_rq; |
152 | typedef void (nvm_end_io_fn)(struct nvm_rq *, int); | 152 | typedef void (nvm_end_io_fn)(struct nvm_rq *); |
153 | 153 | ||
154 | struct nvm_rq { | 154 | struct nvm_rq { |
155 | struct nvm_tgt_instance *ins; | 155 | struct nvm_tgt_instance *ins; |
@@ -173,6 +173,8 @@ struct nvm_rq { | |||
173 | uint8_t opcode; | 173 | uint8_t opcode; |
174 | uint16_t nr_pages; | 174 | uint16_t nr_pages; |
175 | uint16_t flags; | 175 | uint16_t flags; |
176 | |||
177 | int error; | ||
176 | }; | 178 | }; |
177 | 179 | ||
178 | static inline struct nvm_rq *nvm_rq_from_pdu(void *pdu) | 180 | static inline struct nvm_rq *nvm_rq_from_pdu(void *pdu) |