From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE78AEB64DD for ; Thu, 3 Aug 2023 17:05:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232341AbjHCRFj (ORCPT ); Thu, 3 Aug 2023 13:05:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbjHCRFg (ORCPT ); Thu, 3 Aug 2023 13:05:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EDB5DA; Thu, 3 Aug 2023 10:05:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F349C61E46; Thu, 3 Aug 2023 17:05:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 058D5C433C7; Thu, 3 Aug 2023 17:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1691082334; bh=mKXYwoVy5HfvYiKywnPPMjvSi6Q9LzPXn0QPxBh7klc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sR/84AOqkNrlcyI3Mg///cmnKs9K7ETOFfWUvoe1dfQx5DKvUhLK0PQV/VfacxYKJ c9FskuPuzEyD0/Tut7Eg8+l/huwAJp84RU/+2om1L2s6CgrKvpPktF5KRDDNtb/hjd y3DtIqnBfSiziLpvk1Mk36RNcIEzzVBWcY1gLVII= Date: Thu, 3 Aug 2023 10:05:33 -0700 From: Andrew Morton To: Johannes Weiner Cc: Miaohe Lin , tj@kernel.org, lizefan.x@bytedance.com, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cgroup: minor cleanup for cgroup_local_stat_show() Message-Id: <20230803100533.a9bdac370de2e8e4bee0f33a@linux-foundation.org> In-Reply-To: <20230803142758.GC219857@cmpxchg.org> References: <20230803113123.577023-1-linmiaohe@huawei.com> <20230803142758.GC219857@cmpxchg.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Aug 2023 10:27:58 -0400 Johannes Weiner 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.