Commit ad1bd578 authored by Dmitry Fomichev's avatar Dmitry Fomichev Committed by Mike Snitzer

dm zoned: fix a few typos

Signed-off-by: default avatarDmitry Fomichev <dmitry.fomichev@wdc.com>
Reviewed-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent bae9a0aa
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
* (1) Super block (1 block) * (1) Super block (1 block)
* (2) Chunk mapping table (nr_map_blocks) * (2) Chunk mapping table (nr_map_blocks)
* (3) Bitmap blocks (nr_bitmap_blocks) * (3) Bitmap blocks (nr_bitmap_blocks)
* All metadata blocks are stored in conventional zones, starting from the * All metadata blocks are stored in conventional zones, starting from
* the first conventional zone found on disk. * the first conventional zone found on disk.
*/ */
struct dmz_super { struct dmz_super {
...@@ -234,7 +234,7 @@ void dmz_unlock_map(struct dmz_metadata *zmd) ...@@ -234,7 +234,7 @@ void dmz_unlock_map(struct dmz_metadata *zmd)
* Lock/unlock metadata access. This is a "read" lock on a semaphore * Lock/unlock metadata access. This is a "read" lock on a semaphore
* that prevents metadata flush from running while metadata are being * that prevents metadata flush from running while metadata are being
* modified. The actual metadata write mutual exclusion is achieved with * modified. The actual metadata write mutual exclusion is achieved with
* the map lock and zone styate management (active and reclaim state are * the map lock and zone state management (active and reclaim state are
* mutually exclusive). * mutually exclusive).
*/ */
void dmz_lock_metadata(struct dmz_metadata *zmd) void dmz_lock_metadata(struct dmz_metadata *zmd)
...@@ -1652,7 +1652,7 @@ struct dm_zone *dmz_get_chunk_mapping(struct dmz_metadata *zmd, unsigned int chu ...@@ -1652,7 +1652,7 @@ struct dm_zone *dmz_get_chunk_mapping(struct dmz_metadata *zmd, unsigned int chu
if (op != REQ_OP_WRITE) if (op != REQ_OP_WRITE)
goto out; goto out;
/* Alloate a random zone */ /* Allocate a random zone */
dzone = dmz_alloc_zone(zmd, DMZ_ALLOC_RND); dzone = dmz_alloc_zone(zmd, DMZ_ALLOC_RND);
if (!dzone) { if (!dzone) {
if (dmz_bdev_is_dying(zmd->dev)) { if (dmz_bdev_is_dying(zmd->dev)) {
...@@ -1753,7 +1753,7 @@ struct dm_zone *dmz_get_chunk_buffer(struct dmz_metadata *zmd, ...@@ -1753,7 +1753,7 @@ struct dm_zone *dmz_get_chunk_buffer(struct dmz_metadata *zmd,
if (bzone) if (bzone)
goto out; goto out;
/* Alloate a random zone */ /* Allocate a random zone */
bzone = dmz_alloc_zone(zmd, DMZ_ALLOC_RND); bzone = dmz_alloc_zone(zmd, DMZ_ALLOC_RND);
if (!bzone) { if (!bzone) {
if (dmz_bdev_is_dying(zmd->dev)) { if (dmz_bdev_is_dying(zmd->dev)) {
......
...@@ -438,7 +438,7 @@ static bool dmz_should_reclaim(struct dmz_reclaim *zrc) ...@@ -438,7 +438,7 @@ static bool dmz_should_reclaim(struct dmz_reclaim *zrc)
return false; return false;
/* /*
* If the percentage of unmappped random zones is low, * If the percentage of unmapped random zones is low,
* reclaim even if the target is busy. * reclaim even if the target is busy.
*/ */
return p_unmap_rnd <= DMZ_RECLAIM_LOW_UNMAP_RND; return p_unmap_rnd <= DMZ_RECLAIM_LOW_UNMAP_RND;
......
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