]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e1fa8a788a111c1321ac118de1f7d4d5f497b1a
tree86876ba02fe38ea054b8c58f529a234df8a948f8
parent06ebaaa710b66a9be9e5b563c6f6633551e3bf23
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