summaryrefslogtreecommitdiffstats
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
authorMatias Bjørling2016-01-12 07:49:29 +0100
committerJens Axboe2016-01-12 16:21:17 +0100
commit72d256ecc5d0c8cbcc0bd5c6d983b434df556cb4 (patch)
treeb33f8b9f1df32f633f75688d0f89417a3e220296 /include/linux/lightnvm.h
parentlightnvm: support multiple ppas in nvm_erase_ppa (diff)
downloadkernel-qcow2-linux-72d256ecc5d0c8cbcc0bd5c6d983b434df556cb4.tar.gz
kernel-qcow2-linux-72d256ecc5d0c8cbcc0bd5c6d983b434df556cb4.tar.xz
kernel-qcow2-linux-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.h4
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)