[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4C309170-5096-4794-8369-CEC9DD45F2EB@nvidia.com>
Date: Thu, 14 Aug 2025 10:01:39 -0400
From: Zi Yan <ziy@...dia.com>
To: Ye Liu <ye.liu@...ux.dev>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Vlastimil Babka <vbabka@...e.cz>, Ye Liu <liuye@...inos.cn>,
Suren Baghdasaryan <surenb@...gle.com>, Michal Hocko <mhocko@...e.com>,
Brendan Jackman <jackmanb@...gle.com>, Johannes Weiner <hannes@...xchg.org>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm/page_alloc: Remove redundant pcp->free_count
initialization in per_cpu_pages_init()
On 14 Aug 2025, at 3:18, Ye Liu wrote:
> From: Ye Liu <liuye@...inos.cn>
>
> In per_cpu_pages_init(), pcp->free_count is explicitly initialized to 0,
> but this is redundant because the entire struct is already zeroed by
> memset(pcp, 0, sizeof(*pcp)).
>
> Signed-off-by: Ye Liu <liuye@...inos.cn>
> ---
> mm/page_alloc.c | 1 -
> 1 file changed, 1 deletion(-)
>
Reviewed-by: Zi Yan <ziy@...dia.com>
--
Best Regards,
Yan, Zi
Powered by blists - more mailing lists