[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM9d7chqPu2qE5XoDVu5dHGzn35NX-GyPMwq-ir6CYgk0b3soA@mail.gmail.com>
Date: Fri, 25 Oct 2019 18:38:00 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: Tejun Heo <tj@...nel.org>
Cc: Johannes Weiner <hannes@...xchg.org>,
Li Zefan <lizefan@...wei.com>,
LKML <linux-kernel@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Song Liu <liu.song.a23@...il.com>
Subject: Re: [PATCH 1/2] cgroup: Add generation number with cgroup id
On Fri, Oct 25, 2019 at 5:30 PM Namhyung Kim <namhyung@...nel.org> wrote:
> > > /*
> > > * A cgroup_root represents the root of a cgroup hierarchy, and may be
> > > * associated with a kernfs_root to form an active hierarchy. This is
> > > @@ -521,7 +529,7 @@ struct cgroup_root {
> > > unsigned int flags;
> > >
> > > /* IDs for cgroups in this hierarchy */
> > > - struct idr cgroup_idr;
> > > + struct cgroup_idr cgroup_idr;
> >
> > Given that there's cgroup->self css, can we get rid of the above?
>
> I don't follow. Do you want to remove cgroup_idr and share the
> css_idr for cgroup id?
Or, you don't want to add cgroup_idr struct and use idr directly?
Thanks
Namhyung
Powered by blists - more mailing lists