* [PATCH 0/2] dm-zoned: add SPDX identifiers
@ 2019-08-02 22:02 Dmitry Fomichev
2019-08-02 22:02 ` [PATCH 1/2] dm-zoned: add SPDX license identifiers Dmitry Fomichev
2019-08-02 22:02 ` [PATCH 2/2] dm-zoned: fix a few typos Dmitry Fomichev
0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Fomichev @ 2019-08-02 22:02 UTC (permalink / raw)
To: dm-devel, Mike Snitzer; +Cc: Dmitry Fomichev, Damien Le Moal
The first patch adds SPDX IDs to all dm-zoned source files.
The second patch fixes a few typos.
No functional change.
Dmitry Fomichev (2):
dm-zoned: add SPDX license identifiers
dm-zoned: fix a few typos
drivers/md/dm-zoned-metadata.c | 9 +++++----
drivers/md/dm-zoned-reclaim.c | 3 ++-
drivers/md/dm-zoned-target.c | 1 +
drivers/md/dm-zoned.h | 1 +
4 files changed, 9 insertions(+), 5 deletions(-)
--
2.21.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dm-zoned: add SPDX license identifiers
2019-08-02 22:02 [PATCH 0/2] dm-zoned: add SPDX identifiers Dmitry Fomichev
@ 2019-08-02 22:02 ` Dmitry Fomichev
2019-08-02 23:20 ` Damien Le Moal
2019-08-02 22:02 ` [PATCH 2/2] dm-zoned: fix a few typos Dmitry Fomichev
1 sibling, 1 reply; 5+ messages in thread
From: Dmitry Fomichev @ 2019-08-02 22:02 UTC (permalink / raw)
To: dm-devel, Mike Snitzer; +Cc: Dmitry Fomichev, Damien Le Moal
Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
---
drivers/md/dm-zoned-metadata.c | 1 +
drivers/md/dm-zoned-reclaim.c | 1 +
drivers/md/dm-zoned-target.c | 1 +
drivers/md/dm-zoned.h | 1 +
4 files changed, 4 insertions(+)
diff --git a/drivers/md/dm-zoned-metadata.c b/drivers/md/dm-zoned-metadata.c
index 8545dcee9fd0..23e9a6d9350b 100644
--- a/drivers/md/dm-zoned-metadata.c
+++ b/drivers/md/dm-zoned-metadata.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2017 Western Digital Corporation or its affiliates.
*
diff --git a/drivers/md/dm-zoned-reclaim.c b/drivers/md/dm-zoned-reclaim.c
index edf4b95eb075..387894e2add1 100644
--- a/drivers/md/dm-zoned-reclaim.c
+++ b/drivers/md/dm-zoned-reclaim.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2017 Western Digital Corporation or its affiliates.
*
diff --git a/drivers/md/dm-zoned-target.c b/drivers/md/dm-zoned-target.c
index 51d029bbb740..1bf6e6eebee1 100644
--- a/drivers/md/dm-zoned-target.c
+++ b/drivers/md/dm-zoned-target.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2017 Western Digital Corporation or its affiliates.
*
diff --git a/drivers/md/dm-zoned.h b/drivers/md/dm-zoned.h
index ed8de49c9a08..1a3b06de2c00 100644
--- a/drivers/md/dm-zoned.h
+++ b/drivers/md/dm-zoned.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2017 Western Digital Corporation or its affiliates.
*
--
2.21.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] dm-zoned: fix a few typos
2019-08-02 22:02 [PATCH 0/2] dm-zoned: add SPDX identifiers Dmitry Fomichev
2019-08-02 22:02 ` [PATCH 1/2] dm-zoned: add SPDX license identifiers Dmitry Fomichev
@ 2019-08-02 22:02 ` Dmitry Fomichev
2019-08-02 23:20 ` Damien Le Moal
1 sibling, 1 reply; 5+ messages in thread
From: Dmitry Fomichev @ 2019-08-02 22:02 UTC (permalink / raw)
To: dm-devel, Mike Snitzer; +Cc: Dmitry Fomichev, Damien Le Moal
Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
---
drivers/md/dm-zoned-metadata.c | 8 ++++----
drivers/md/dm-zoned-reclaim.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/md/dm-zoned-metadata.c b/drivers/md/dm-zoned-metadata.c
index 23e9a6d9350b..ded4984d18c9 100644
--- a/drivers/md/dm-zoned-metadata.c
+++ b/drivers/md/dm-zoned-metadata.c
@@ -35,7 +35,7 @@
* (1) Super block (1 block)
* (2) Chunk mapping table (nr_map_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.
*/
struct dmz_super {
@@ -234,7 +234,7 @@ void dmz_unlock_map(struct dmz_metadata *zmd)
* Lock/unlock metadata access. This is a "read" lock on a semaphore
* that prevents metadata flush from running while metadata are being
* 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).
*/
void dmz_lock_metadata(struct dmz_metadata *zmd)
@@ -1629,7 +1629,7 @@ struct dm_zone *dmz_get_chunk_mapping(struct dmz_metadata *zmd, unsigned int chu
if (op != REQ_OP_WRITE)
goto out;
- /* Alloate a random zone */
+ /* Allocate a random zone */
dzone = dmz_alloc_zone(zmd, DMZ_ALLOC_RND);
if (!dzone) {
dmz_wait_for_free_zones(zmd);
@@ -1726,7 +1726,7 @@ struct dm_zone *dmz_get_chunk_buffer(struct dmz_metadata *zmd,
if (bzone)
goto out;
- /* Alloate a random zone */
+ /* Allocate a random zone */
bzone = dmz_alloc_zone(zmd, DMZ_ALLOC_RND);
if (!bzone) {
dmz_wait_for_free_zones(zmd);
diff --git a/drivers/md/dm-zoned-reclaim.c b/drivers/md/dm-zoned-reclaim.c
index 387894e2add1..260e3598199e 100644
--- a/drivers/md/dm-zoned-reclaim.c
+++ b/drivers/md/dm-zoned-reclaim.c
@@ -428,7 +428,7 @@ static bool dmz_should_reclaim(struct dmz_reclaim *zrc)
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.
*/
return p_unmap_rnd <= DMZ_RECLAIM_LOW_UNMAP_RND;
--
2.21.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dm-zoned: add SPDX license identifiers
2019-08-02 22:02 ` [PATCH 1/2] dm-zoned: add SPDX license identifiers Dmitry Fomichev
@ 2019-08-02 23:20 ` Damien Le Moal
0 siblings, 0 replies; 5+ messages in thread
From: Damien Le Moal @ 2019-08-02 23:20 UTC (permalink / raw)
To: Dmitry Fomichev, dm-devel, Mike Snitzer
On 2019/08/03 7:02, Dmitry Fomichev wrote:
> Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
> ---
> drivers/md/dm-zoned-metadata.c | 1 +
> drivers/md/dm-zoned-reclaim.c | 1 +
> drivers/md/dm-zoned-target.c | 1 +
> drivers/md/dm-zoned.h | 1 +
> 4 files changed, 4 insertions(+)
>
> diff --git a/drivers/md/dm-zoned-metadata.c b/drivers/md/dm-zoned-metadata.c
> index 8545dcee9fd0..23e9a6d9350b 100644
> --- a/drivers/md/dm-zoned-metadata.c
> +++ b/drivers/md/dm-zoned-metadata.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> /*
> * Copyright (C) 2017 Western Digital Corporation or its affiliates.
> *
> diff --git a/drivers/md/dm-zoned-reclaim.c b/drivers/md/dm-zoned-reclaim.c
> index edf4b95eb075..387894e2add1 100644
> --- a/drivers/md/dm-zoned-reclaim.c
> +++ b/drivers/md/dm-zoned-reclaim.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> /*
> * Copyright (C) 2017 Western Digital Corporation or its affiliates.
> *
> diff --git a/drivers/md/dm-zoned-target.c b/drivers/md/dm-zoned-target.c
> index 51d029bbb740..1bf6e6eebee1 100644
> --- a/drivers/md/dm-zoned-target.c
> +++ b/drivers/md/dm-zoned-target.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> /*
> * Copyright (C) 2017 Western Digital Corporation or its affiliates.
> *
> diff --git a/drivers/md/dm-zoned.h b/drivers/md/dm-zoned.h
> index ed8de49c9a08..1a3b06de2c00 100644
> --- a/drivers/md/dm-zoned.h
> +++ b/drivers/md/dm-zoned.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0 */
> /*
> * Copyright (C) 2017 Western Digital Corporation or its affiliates.
> *
>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dm-zoned: fix a few typos
2019-08-02 22:02 ` [PATCH 2/2] dm-zoned: fix a few typos Dmitry Fomichev
@ 2019-08-02 23:20 ` Damien Le Moal
0 siblings, 0 replies; 5+ messages in thread
From: Damien Le Moal @ 2019-08-02 23:20 UTC (permalink / raw)
To: Dmitry Fomichev, dm-devel, Mike Snitzer
On 2019/08/03 7:02, Dmitry Fomichev wrote:
> Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
> ---
> drivers/md/dm-zoned-metadata.c | 8 ++++----
> drivers/md/dm-zoned-reclaim.c | 2 +-
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/md/dm-zoned-metadata.c b/drivers/md/dm-zoned-metadata.c
> index 23e9a6d9350b..ded4984d18c9 100644
> --- a/drivers/md/dm-zoned-metadata.c
> +++ b/drivers/md/dm-zoned-metadata.c
> @@ -35,7 +35,7 @@
> * (1) Super block (1 block)
> * (2) Chunk mapping table (nr_map_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.
> */
> struct dmz_super {
> @@ -234,7 +234,7 @@ void dmz_unlock_map(struct dmz_metadata *zmd)
> * Lock/unlock metadata access. This is a "read" lock on a semaphore
> * that prevents metadata flush from running while metadata are being
> * 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).
> */
> void dmz_lock_metadata(struct dmz_metadata *zmd)
> @@ -1629,7 +1629,7 @@ struct dm_zone *dmz_get_chunk_mapping(struct dmz_metadata *zmd, unsigned int chu
> if (op != REQ_OP_WRITE)
> goto out;
>
> - /* Alloate a random zone */
> + /* Allocate a random zone */
> dzone = dmz_alloc_zone(zmd, DMZ_ALLOC_RND);
> if (!dzone) {
> dmz_wait_for_free_zones(zmd);
> @@ -1726,7 +1726,7 @@ struct dm_zone *dmz_get_chunk_buffer(struct dmz_metadata *zmd,
> if (bzone)
> goto out;
>
> - /* Alloate a random zone */
> + /* Allocate a random zone */
> bzone = dmz_alloc_zone(zmd, DMZ_ALLOC_RND);
> if (!bzone) {
> dmz_wait_for_free_zones(zmd);
> diff --git a/drivers/md/dm-zoned-reclaim.c b/drivers/md/dm-zoned-reclaim.c
> index 387894e2add1..260e3598199e 100644
> --- a/drivers/md/dm-zoned-reclaim.c
> +++ b/drivers/md/dm-zoned-reclaim.c
> @@ -428,7 +428,7 @@ static bool dmz_should_reclaim(struct dmz_reclaim *zrc)
> 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.
> */
> return p_unmap_rnd <= DMZ_RECLAIM_LOW_UNMAP_RND;
>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-08-02 23:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-02 22:02 [PATCH 0/2] dm-zoned: add SPDX identifiers Dmitry Fomichev
2019-08-02 22:02 ` [PATCH 1/2] dm-zoned: add SPDX license identifiers Dmitry Fomichev
2019-08-02 23:20 ` Damien Le Moal
2019-08-02 22:02 ` [PATCH 2/2] dm-zoned: fix a few typos Dmitry Fomichev
2019-08-02 23:20 ` Damien Le Moal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.