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>
This commit is contained in:

committed by
Jens Axboe

parent
a7689938ef
commit
e53927393b
@@ -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 */
|
||||
|
Reference in New Issue
Block a user