Re: [PATCH] cgroup: minor cleanup for cgroup_local_stat_show()

From: Andrew Morton
Date: Thu Aug 03 2023 - 13:05:40 EST


On Thu, 3 Aug 2023 10:27:58 -0400 Johannes Weiner <hannes@xxxxxxxxxxx> wrote:

> > @@ -3686,8 +3686,9 @@ static int cpu_stat_show(struct seq_file *seq, void *v)
> > return ret;
> > }
> >
> > -static int __maybe_unused cgroup_local_stat_show(struct seq_file *seq,
> > - struct cgroup *cgrp, int ssid)
> > +#ifdef CONFIG_CGROUP_SCHED
> > +static int cgroup_local_stat_show(struct seq_file *seq,
> > + struct cgroup *cgrp, int ssid)
>
> Andrew, this is based on "sched: add throttled time stat for throttled
> children" in -next (coming in from -tip). Hence the routing through
> you rather than the cgroup tree.

Since switching to the more gitty workflow I have lost the power to
carry patches against -next. I could regain that power I guess, but
this is the first time the requirement has come up.

So for now I'll save this patch away for the next -rc cycle.