Commit 5e60edb7 authored by Matias Bjørling's avatar Matias Bjørling Committed by Jens Axboe

lightnvm: rename gennvm and update description

The generic manager should be called the general media manager, and
instead of using the rather long name of "gennvm" in front of each data
structures, use "gen" instead to shorten it. Update the description of
the media manager as well to make the media manager purpose clearer.
Signed-off-by: default avatarMatias Bjørling <m@bjorling.me>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 077d2389
...@@ -27,11 +27,13 @@ config NVM_DEBUG ...@@ -27,11 +27,13 @@ config NVM_DEBUG
It is required to create/remove targets without IOCTLs. It is required to create/remove targets without IOCTLs.
config NVM_GENNVM config NVM_GENNVM
tristate "Generic NVM manager for Open-Channel SSDs" tristate "General Non-Volatile Memory Manager for Open-Channel SSDs"
---help--- ---help---
NVM media manager for Open-Channel SSDs that offload management Non-volatile memory media manager for Open-Channel SSDs that implements
functionality to device, while keeping data placement and garbage physical media metadata management and block provisioning API.
collection decisions on the host.
This is the standard media manager for using Open-Channel SSDs, and
required for targets to be instantiated.
config NVM_RRPC config NVM_RRPC
tristate "Round-robin Hybrid Open-Channel SSD target" tristate "Round-robin Hybrid Open-Channel SSD target"
......
This diff is collapsed.
...@@ -34,7 +34,7 @@ struct gen_lun { ...@@ -34,7 +34,7 @@ struct gen_lun {
*/ */
}; };
struct gen_nvm { struct gen_dev {
struct nvm_dev *dev; struct nvm_dev *dev;
int nr_luns; int nr_luns;
...@@ -42,12 +42,13 @@ struct gen_nvm { ...@@ -42,12 +42,13 @@ struct gen_nvm {
struct list_head area_list; struct list_head area_list;
}; };
struct gennvm_area { struct gen_area {
struct list_head list; struct list_head list;
sector_t begin; sector_t begin;
sector_t end; /* end is excluded */ sector_t end; /* end is excluded */
}; };
#define gennvm_for_each_lun(bm, lun, i) \
#define gen_for_each_lun(bm, lun, i) \
for ((i) = 0, lun = &(bm)->luns[0]; \ for ((i) = 0, lun = &(bm)->luns[0]; \
(i) < (bm)->nr_luns; (i)++, lun = &(bm)->luns[(i)]) (i) < (bm)->nr_luns; (i)++, lun = &(bm)->luns[(i)])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment