[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aSNZVv6BZCZcRsgs@redhat.com>
Date: Sun, 23 Nov 2025 19:58:30 +0100
From: Oleg Nesterov <oleg@...hat.com>
To: Mateusz Guzik <mjguzik@...il.com>
Cc: brauner@...nel.org, linux-kernel@...r.kernel.org,
akpm@...ux-foundation.org, linux-mm@...ck.org
Subject: Re: [PATCH 2/3] ns: pad refcount
On 11/23, Mateusz Guzik wrote:
>
> struct ns_common {
> + struct {
> + refcount_t __ns_ref; /* do not use directly */
> + } ____cacheline_aligned_in_smp;
Cough... stupid question. Why not just
refcount_t __ns_ref ____cacheline_aligned_in_smp;
? why do we need the anonymous struct?
Oleg.
Powered by blists - more mailing lists