summaryrefslogtreecommitdiff
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
authorJavier González <javier@cnexlabs.com>2018-01-05 14:16:14 +0100
committerJens Axboe <axboe@kernel.dk>2018-01-05 08:50:12 -0700
commite53927393b9987b7c986b6364c27111077f0ea3e (patch)
tree86876ba02fe38ea054b8c58f529a234df8a948f8 /include/linux/lightnvm.h
parenta7689938ef4c8678ff78c44d11e4b0b897244714 (diff)
downloadlwn-e53927393b9987b7c986b6364c27111077f0ea3e.tar.gz
lwn-e53927393b9987b7c986b6364c27111077f0ea3e.zip
lightnvm: set target over-provision on create ioctl
Allow to set the over-provision percentage on target creation. In case that the value is not provided, fall back to the default value set by the target. In pblk, set the default OP to 11% of the total size of the device Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r--include/linux/lightnvm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index 8e43bfebd38d..7f4b60abdf27 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -218,6 +218,10 @@ struct nvm_target {
#define ADDR_EMPTY (~0ULL)
+#define NVM_TARGET_DEFAULT_OP (101)
+#define NVM_TARGET_MIN_OP (3)
+#define NVM_TARGET_MAX_OP (80)
+
#define NVM_VERSION_MAJOR 1
#define NVM_VERSION_MINOR 0
#define NVM_VERSION_PATCH 0
@@ -291,6 +295,8 @@ struct nvm_geo {
int max_rq_size;
+ int op;
+
struct nvm_addr_format ppaf;
/* Legacy 1.2 specific geometry */