[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250814135935.GE115258@cmpxchg.org>
Date: Thu, 14 Aug 2025 09:59:35 -0400
From: Johannes Weiner <hannes@...xchg.org>
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>, Zi Yan <ziy@...dia.com>,
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 Thu, Aug 14, 2025 at 03:18:28PM +0800, 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>
Acked-by: Johannes Weiner <hannes@...xchg.org>
Powered by blists - more mailing lists