lightnvm: set target over-provision on create ioctl
authorJavier González <javier@cnexlabs.com>
Fri, 5 Jan 2018 13:16:14 +0000 (14:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jan 2018 15:50:12 +0000 (08:50 -0700)
commite53927393b9987b7c986b6364c27111077f0ea3e
tree86876ba02fe38ea054b8c58f529a234df8a948f8
parenta7689938ef4c8678ff78c44d11e4b0b897244714
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>
drivers/lightnvm/core.c
drivers/lightnvm/pblk-init.c
drivers/lightnvm/pblk.h
include/linux/lightnvm.h
include/uapi/linux/lightnvm.h