diff options
author | Matias Bjørling <m@bjorling.me> | 2016-07-07 09:54:15 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-07-07 08:51:52 -0600 |
commit | 5e60edb7dcedd6bdcf946ba765f51e8d363d65a8 (patch) | |
tree | ece79aec7846bd55953168a0f0da90603ccc1088 /drivers/lightnvm/gennvm.h | |
parent | lightnvm: remove open/close statistics for gennvm (diff) | |
download | linux-dev-5e60edb7dcedd6bdcf946ba765f51e8d363d65a8.tar.xz linux-dev-5e60edb7dcedd6bdcf946ba765f51e8d363d65a8.zip |
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: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm/gennvm.h')
-rw-r--r-- | drivers/lightnvm/gennvm.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/lightnvm/gennvm.h b/drivers/lightnvm/gennvm.h index 04d7c23cfc61..bf0621963c7c 100644 --- a/drivers/lightnvm/gennvm.h +++ b/drivers/lightnvm/gennvm.h @@ -34,7 +34,7 @@ struct gen_lun { */ }; -struct gen_nvm { +struct gen_dev { struct nvm_dev *dev; int nr_luns; @@ -42,12 +42,13 @@ struct gen_nvm { struct list_head area_list; }; -struct gennvm_area { +struct gen_area { struct list_head list; sector_t begin; 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]; \ (i) < (bm)->nr_luns; (i)++, lun = &(bm)->luns[(i)]) |