lightnvm: add minor version to generic geometry
authorJavier González <javier@cnexlabs.com>
Thu, 29 Mar 2018 22:05:11 +0000 (00:05 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Mar 2018 23:29:09 +0000 (17:29 -0600)
commit3cb98f84d368b3bbe07a2d5bf938e31f74567620
tree7a9906d9f8f5835e5338eaf7896cbf66574c242c
parente46f4e4822bdecf9bcbc2e71b2a3ae7f37464a2d
lightnvm: add minor version to generic geometry

Separate the version between major and minor on the generic geometry and
represent it through sysfs in the 2.0 path. The 1.2 path only shows the
major version to preserve the existing user space interface.

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>
drivers/lightnvm/core.c
drivers/nvme/host/lightnvm.c
include/linux/lightnvm.h