linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: Remove ancient/ambiguous comment
@ 2017-06-23 11:35 Nikolay Borisov
  2017-06-23 11:46 ` Michal Hocko
  2017-06-23 12:22 ` [PATCHi v3] " Nikolay Borisov
  0 siblings, 2 replies; 5+ messages in thread
From: Nikolay Borisov @ 2017-06-23 11:35 UTC (permalink / raw)
  To: akpm; +Cc: mgorman, linux-mm, mhocko, Nikolay Borisov

Currently pg_data_t is just a struct which describes a NUMA node memory 
layout. Let's keep the comment simple and remove ambiguity.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
---
 include/linux/mmzone.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index ef6a13b7bd3e..c870c65fb945 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -587,10 +587,6 @@ extern struct page *mem_map;
 #endif
 
 /*
- * The pg_data_t structure is used in machines with CONFIG_DISCONTIGMEM
- * (mostly NUMA machines?) to denote a higher-level memory zone than the
- * zone denotes.
- *
  * On NUMA machines, each NUMA node would have a pg_data_t to describe
  * it's memory layout.
  *
-- 
2.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] mm: Remove ancient/ambiguous comment
  2017-06-23 11:35 [PATCH] mm: Remove ancient/ambiguous comment Nikolay Borisov
@ 2017-06-23 11:46 ` Michal Hocko
  2017-06-23 12:08   ` [PATCH v2] " Nikolay Borisov
  2017-06-23 12:22 ` [PATCHi v3] " Nikolay Borisov
  1 sibling, 1 reply; 5+ messages in thread
From: Michal Hocko @ 2017-06-23 11:46 UTC (permalink / raw)
  To: Nikolay Borisov; +Cc: akpm, mgorman, linux-mm

On Fri 23-06-17 14:35:17, Nikolay Borisov wrote:
> Currently pg_data_t is just a struct which describes a NUMA node memory 
> layout. Let's keep the comment simple and remove ambiguity.

Yes this comment just doesn't make any sense. I would even enhance the
comment and note that on UMA machines there is only a single pg_data_t
that describes the whole memory.

> 
> Signed-off-by: Nikolay Borisov <nborisov@suse.com>

Acked-by: Michal Hocko <mhocko@suse.com>

> ---
>  include/linux/mmzone.h | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
> index ef6a13b7bd3e..c870c65fb945 100644
> --- a/include/linux/mmzone.h
> +++ b/include/linux/mmzone.h
> @@ -587,10 +587,6 @@ extern struct page *mem_map;
>  #endif
>  
>  /*
> - * The pg_data_t structure is used in machines with CONFIG_DISCONTIGMEM
> - * (mostly NUMA machines?) to denote a higher-level memory zone than the
> - * zone denotes.
> - *
>   * On NUMA machines, each NUMA node would have a pg_data_t to describe
>   * it's memory layout.
>   *
> -- 
> 2.7.4

-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH  v2] mm: Remove ancient/ambiguous comment
  2017-06-23 11:46 ` Michal Hocko
@ 2017-06-23 12:08   ` Nikolay Borisov
  2017-06-23 12:14     ` Michal Hocko
  0 siblings, 1 reply; 5+ messages in thread
From: Nikolay Borisov @ 2017-06-23 12:08 UTC (permalink / raw)
  To: akpm; +Cc: mgorman, linux-mm, mhocko, Nikolay Borisov

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
---
 include/linux/mmzone.h | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index ef6a13b7bd3e..d260eb30e4ce 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -587,12 +587,9 @@ extern struct page *mem_map;
 #endif
 
 /*
- * The pg_data_t structure is used in machines with CONFIG_DISCONTIGMEM
- * (mostly NUMA machines?) to denote a higher-level memory zone than the
- * zone denotes.
- *
  * On NUMA machines, each NUMA node would have a pg_data_t to describe
- * it's memory layout.
+ * it's memory layout. On UMA machines there is a single pglist_data which
+ * describes the whole memory.
  *
  * Memory statistics and page replacement data structures are maintained on a
  * per-zone basis.
-- 
2.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH  v2] mm: Remove ancient/ambiguous comment
  2017-06-23 12:08   ` [PATCH v2] " Nikolay Borisov
@ 2017-06-23 12:14     ` Michal Hocko
  0 siblings, 0 replies; 5+ messages in thread
From: Michal Hocko @ 2017-06-23 12:14 UTC (permalink / raw)
  To: Nikolay Borisov; +Cc: akpm, mgorman, linux-mm

I guess you want to add the changelog from v1

On Fri 23-06-17 15:08:52, Nikolay Borisov wrote:
> Signed-off-by: Nikolay Borisov <nborisov@suse.com>

Other than that
Acked-by: Michal Hocko <mhocko@suse.com>

Thanks!

> ---
>  include/linux/mmzone.h | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
> 
> diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
> index ef6a13b7bd3e..d260eb30e4ce 100644
> --- a/include/linux/mmzone.h
> +++ b/include/linux/mmzone.h
> @@ -587,12 +587,9 @@ extern struct page *mem_map;
>  #endif
>  
>  /*
> - * The pg_data_t structure is used in machines with CONFIG_DISCONTIGMEM
> - * (mostly NUMA machines?) to denote a higher-level memory zone than the
> - * zone denotes.
> - *
>   * On NUMA machines, each NUMA node would have a pg_data_t to describe
> - * it's memory layout.
> + * it's memory layout. On UMA machines there is a single pglist_data which
> + * describes the whole memory.
>   *
>   * Memory statistics and page replacement data structures are maintained on a
>   * per-zone basis.
> -- 
> 2.7.4

-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCHi v3] mm: Remove ancient/ambiguous comment
  2017-06-23 11:35 [PATCH] mm: Remove ancient/ambiguous comment Nikolay Borisov
  2017-06-23 11:46 ` Michal Hocko
@ 2017-06-23 12:22 ` Nikolay Borisov
  1 sibling, 0 replies; 5+ messages in thread
From: Nikolay Borisov @ 2017-06-23 12:22 UTC (permalink / raw)
  To: akpm; +Cc: mgorman, linux-mm, mhocko, Nikolay Borisov

Currently pg_data_t is just a struct which describes a NUMA node memory
layout. Let's keep the comment simple and remove ambiguity.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Acked-by: Michal Hocko <mhocko@suse.com>

---
 include/linux/mmzone.h | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index ef6a13b7bd3e..d260eb30e4ce 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -587,12 +587,9 @@ extern struct page *mem_map;
 #endif
 
 /*
- * The pg_data_t structure is used in machines with CONFIG_DISCONTIGMEM
- * (mostly NUMA machines?) to denote a higher-level memory zone than the
- * zone denotes.
- *
  * On NUMA machines, each NUMA node would have a pg_data_t to describe
- * it's memory layout.
+ * it's memory layout. On UMA machines there is a single pglist_data which
+ * describes the whole memory.
  *
  * Memory statistics and page replacement data structures are maintained on a
  * per-zone basis.
-- 
2.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-23 12:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-23 11:35 [PATCH] mm: Remove ancient/ambiguous comment Nikolay Borisov
2017-06-23 11:46 ` Michal Hocko
2017-06-23 12:08   ` [PATCH v2] " Nikolay Borisov
2017-06-23 12:14     ` Michal Hocko
2017-06-23 12:22 ` [PATCHi v3] " Nikolay Borisov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).