summaryrefslogtreecommitdiffstats
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
authorJavier González2018-03-30 00:05:13 +0200
committerJens Axboe2018-03-30 01:29:09 +0200
commit3f48021bad73696421e2725c856b9b3aec7f567c (patch)
tree440643d2ba86466d7b0d775f972483a65cb91e61 /include/linux/lightnvm.h
parentlightnvm: add shorten OCSSD version in geo (diff)
downloadkernel-qcow2-linux-3f48021bad73696421e2725c856b9b3aec7f567c.tar.gz
kernel-qcow2-linux-3f48021bad73696421e2725c856b9b3aec7f567c.tar.xz
kernel-qcow2-linux-3f48021bad73696421e2725c856b9b3aec7f567c.zip
lightnvm: complete geo structure with maxoc*
Complete the generic geometry structure with the maxoc and maxocpu felds, present in the 2.0 spec. Also, expose them through sysfs. Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r--include/linux/lightnvm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index a073c0c76260..870959a58fef 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -296,6 +296,8 @@ struct nvm_geo {
u32 ws_min; /* minimum write size */
u32 ws_opt; /* optimal write size */
u32 mw_cunits; /* distance required for successful read */
+ u32 maxoc; /* maximum open chunks */
+ u32 maxocpu; /* maximum open chunks per parallel unit */
/* device capabilities */
u32 mccap;