linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/mm_init.c: remove redundant pr_info when node is memoryless
@ 2023-09-06  9:11 Yajun Deng
  2023-09-10 21:30 ` Andrew Morton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yajun Deng @ 2023-09-06  9:11 UTC (permalink / raw)
  To: rppt, akpm; +Cc: linux-mm, linux-kernel, Yajun Deng

There is a similar pr_info in free_area_init_node(), so remove the
redundant pr_info.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
---
 mm/mm_init.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/mm/mm_init.c b/mm/mm_init.c
index 50f2f34745af..6be6f50813b1 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -1871,8 +1871,6 @@ void __init free_area_init(unsigned long *max_zone_pfn)
 		pg_data_t *pgdat;
 
 		if (!node_online(nid)) {
-			pr_info("Initializing node %d as memoryless\n", nid);
-
 			/* Allocator not initialized yet */
 			pgdat = arch_alloc_nodedata(nid);
 			if (!pgdat)
-- 
2.25.1



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

* Re: [PATCH] mm/mm_init.c: remove redundant pr_info when node is memoryless
  2023-09-06  9:11 [PATCH] mm/mm_init.c: remove redundant pr_info when node is memoryless Yajun Deng
@ 2023-09-10 21:30 ` Andrew Morton
  2023-09-11  2:57 ` Yajun Deng
  2023-09-11  7:51 ` David Hildenbrand
  2 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2023-09-10 21:30 UTC (permalink / raw)
  To: Yajun Deng; +Cc: rppt, linux-mm, linux-kernel

On Wed,  6 Sep 2023 17:11:13 +0800 Yajun Deng <yajun.deng@linux.dev> wrote:

> There is a similar pr_info in free_area_init_node(), so remove the
> redundant pr_info.

Please quote the before and after dmesg output so we can better
understand this proposal, thanks.


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

* Re: [PATCH] mm/mm_init.c: remove redundant pr_info when node is memoryless
  2023-09-06  9:11 [PATCH] mm/mm_init.c: remove redundant pr_info when node is memoryless Yajun Deng
  2023-09-10 21:30 ` Andrew Morton
@ 2023-09-11  2:57 ` Yajun Deng
  2023-09-11  7:51 ` David Hildenbrand
  2 siblings, 0 replies; 4+ messages in thread
From: Yajun Deng @ 2023-09-11  2:57 UTC (permalink / raw)
  To: Andrew Morton; +Cc: rppt, linux-mm, linux-kernel

September 11, 2023 at 5:30 AM, "Andrew Morton" <akpm@linux-foundation.org> wrote:


> 
> On Wed, 6 Sep 2023 17:11:13 +0800 Yajun Deng <yajun.deng@linux.dev> wrote:
> 
> > 
> > There is a similar pr_info in free_area_init_node(), so remove the
> >  redundant pr_info.
> > 
> 
> Please quote the before and after dmesg output so we can better
> understand this proposal, thanks.
>

before:
[    0.006314] Initializing node 0 as memoryless
[    0.006445] Initmem setup node 0 as memoryless
[    0.006450] Initmem setup node 1 [mem 0x0000000000001000-0x000000003fffffff]
[    0.006453] Initmem setup node 2 [mem 0x0000000040000000-0x000000007ffd7fff]
[    0.006454] Initializing node 3 as memoryless
[    0.006584] Initmem setup node 3 as memoryless
[    0.006585] Initmem setup node 4 [mem 0x0000000100000000-0x00000001bfffffff]
[    0.006586] Initmem setup node 5 [mem 0x00000001c0000000-0x00000001ffffffff]
[    0.006587] Initmem setup node 6 [mem 0x0000000200000000-0x000000023fffffff]

after:
[    0.004147] Initmem setup node 0 as memoryless
[    0.004148] Initmem setup node 1 [mem 0x0000000000001000-0x000000003fffffff]
[    0.004150] Initmem setup node 2 [mem 0x0000000040000000-0x000000007ffd7fff]
[    0.004154] Initmem setup node 3 as memoryless
[    0.004155] Initmem setup node 4 [mem 0x0000000100000000-0x00000001bfffffff]
[    0.004156] Initmem setup node 5 [mem 0x00000001c0000000-0x00000001ffffffff]
[    0.004157] Initmem setup node 6 [mem 0x0000000200000000-0x000000023fffffff]


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

* Re: [PATCH] mm/mm_init.c: remove redundant pr_info when node is memoryless
  2023-09-06  9:11 [PATCH] mm/mm_init.c: remove redundant pr_info when node is memoryless Yajun Deng
  2023-09-10 21:30 ` Andrew Morton
  2023-09-11  2:57 ` Yajun Deng
@ 2023-09-11  7:51 ` David Hildenbrand
  2 siblings, 0 replies; 4+ messages in thread
From: David Hildenbrand @ 2023-09-11  7:51 UTC (permalink / raw)
  To: Yajun Deng, rppt, akpm; +Cc: linux-mm, linux-kernel

On 06.09.23 11:11, Yajun Deng wrote:
> There is a similar pr_info in free_area_init_node(), so remove the
> redundant pr_info.
> 
> Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
> ---
>   mm/mm_init.c | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/mm/mm_init.c b/mm/mm_init.c
> index 50f2f34745af..6be6f50813b1 100644
> --- a/mm/mm_init.c
> +++ b/mm/mm_init.c
> @@ -1871,8 +1871,6 @@ void __init free_area_init(unsigned long *max_zone_pfn)
>   		pg_data_t *pgdat;
>   
>   		if (!node_online(nid)) {
> -			pr_info("Initializing node %d as memoryless\n", nid);
> -
>   			/* Allocator not initialized yet */
>   			pgdat = arch_alloc_nodedata(nid);
>   			if (!pgdat)


Reviewed-by: David Hildenbrand <david@redhat.com>

-- 
Cheers,

David / dhildenb



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

end of thread, other threads:[~2023-09-11  7:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-06  9:11 [PATCH] mm/mm_init.c: remove redundant pr_info when node is memoryless Yajun Deng
2023-09-10 21:30 ` Andrew Morton
2023-09-11  2:57 ` Yajun Deng
2023-09-11  7:51 ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox