Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp415699lqd; Wed, 24 Apr 2024 06:27:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdh9U0yHv7beOamQVvdMPWhrAzVRSgKYLFCb614c89RlmarB2/mZNsARrDxYC9dONaAUyahKD7zSvea73uDwv9GpiVj8WUyJCkmuvvyw== X-Google-Smtp-Source: AGHT+IFjanNtc2NPvXlFyzcq30KJZLGfDlDl5nQMNJ7CLtSR0Gjo3a5AT10Y+EcXV25b4aN8Lu+o X-Received: by 2002:a05:6808:1ab3:b0:3c2:277e:65c2 with SMTP id bm51-20020a0568081ab300b003c2277e65c2mr1995475oib.41.1713965273339; Wed, 24 Apr 2024 06:27:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713965273; cv=pass; d=google.com; s=arc-20160816; b=tj8DWp5Tl8ETnm/v4z6EsZI5VgtWOR/61iVm9BAam55Sler3aYDgy4il8xqnHObozK 70FZwxLQvtAFe7YwkhAls52plExbjncCUrkKitVdph/AHObnEX83psTH0x5ZHUzPghXR hM3HlUfjz/6TypMbX6n3p6/TtQa7Ftcby50WLDdQt2OBtV7Kq4NOUzS/40RdGlf+KC1i C5NWEn4jPXlp01IufFFndSglH2lbwPIu6YI8eLnAZFumQFBmfx9cy9+TMSHPWaN++W/H uYGKBXC/DiTDhvsyUW/iaVfNoWgXTGgN/Oq8p1jDbGWwCc4eZBYeeunvNEHJDgmKFFkf aR8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bmaQzf01ImU89PHQrVzq0PujKy/T2pnrZwcrGlSMcAM=; fh=/CEgt7gt9b1j0PAMVaBRaEVrE5rBPCe08g2hRuO2ZYA=; b=cAqjFEboy7r5AtLIS26whi4IlVEPb69iQfdN1qCAzxu03gqXWWMwwNQHheX0luqyWx 108O3HgcGV+SOwCmVRTvKrOAL2LOM492W6wfoTekJD2924K3pu5wVyE9b6xhlXpDWywQ wPXEbc3e/ElQryHU9JN1CIgwjr4ZknEFM0Oiz31M7VB0Glt1AyPK9VyQHJLiYulREoKM 492xEW47t6Udq/vf4EGxrheeYNziG8d4LFf0fYctaEfrgHR0DWjuUbAdkQ5Xj2C+HgAF Nuvu5VQ4eY2BOgl2vlkTpCIunXZwG8bGOVtUjY5En9T6r/HpdAWkuP4vXhuGHIGZSNkE HwHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=bZxiilOM; arc=pass (i=1 spf=pass spfdomain=cmpxchg.org dkim=pass dkdomain=cmpxchg-org.20230601.gappssmtp.com dmarc=pass fromdomain=cmpxchg.org); spf=pass (google.com: domain of linux-kernel+bounces-156954-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gv3-20020a056214262300b0069b516a51f5si14708008qvb.254.2024.04.24.06.27.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 06:27:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156954-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=bZxiilOM; arc=pass (i=1 spf=pass spfdomain=cmpxchg.org dkim=pass dkdomain=cmpxchg-org.20230601.gappssmtp.com dmarc=pass fromdomain=cmpxchg.org); spf=pass (google.com: domain of linux-kernel+bounces-156954-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 120441C21050 for ; Wed, 24 Apr 2024 13:27:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFC2415CD4D; Wed, 24 Apr 2024 13:27:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cmpxchg-org.20230601.gappssmtp.com header.i=@cmpxchg-org.20230601.gappssmtp.com header.b="bZxiilOM" Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BFA71598E3 for ; Wed, 24 Apr 2024 13:27:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713965265; cv=none; b=gBlxe4kUS8kQXW8mz74Ig3TUmImVFOK1UWJH3v+/icgCDW05fvcaRsljlYObAqL9P29HwuQpoacTd32PFBGL2GY2kEebQsKGy9i38KGZ3izCR9hn20KqeW1CiYHgj0FFrdYbB44XPPhV5aJuPmU4LxRiQ/HQwQBQ6gLccHhmvZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713965265; c=relaxed/simple; bh=hVCiT3cVeoDPw8o5TxOi/tzoJPcyStCe54BZO09DgLY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OFK764o7gB+A8rOhwQZdL8RRvvp8bLLyC8oPMjchGcR6o9+64fbOd9LkPd5NzEmpIFwzZn/O8vJ6U6slsQeoviR1udarcHozL8j/fgL8NHsTt+Eh/2ec73tq893QqEWPbeU35dOsBHcltlCqZXbQNyldrEiZ5dOXr18ufFpbF8U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmpxchg.org; spf=pass smtp.mailfrom=cmpxchg.org; dkim=pass (2048-bit key) header.d=cmpxchg-org.20230601.gappssmtp.com header.i=@cmpxchg-org.20230601.gappssmtp.com header.b=bZxiilOM; arc=none smtp.client-ip=209.85.222.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmpxchg.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmpxchg.org Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-78f05341128so444191685a.0 for ; Wed, 24 Apr 2024 06:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20230601.gappssmtp.com; s=20230601; t=1713965261; x=1714570061; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=bmaQzf01ImU89PHQrVzq0PujKy/T2pnrZwcrGlSMcAM=; b=bZxiilOMgQRR/kRrdlzRTfJzePsgEX5EzxwWMgF/l+ll5TFMAg6WfVXqXlKKbYbEac 6PNLN6uV72EeJrJJjrRuuXMXy1+nIVu/VbloaOoOggFO+XU0ovbZ/ajz/zUh08TrP1Tc 315xySGk/H6Q9AUcnQMVCa+FS/EXXOZX7wjx55KUj8sKrhR6ifV+NAjS1hp4lGygvTT1 QNYkbufwuxaPaEotEP7FJpb1Z/TnxbEs8oqcpnqzlbnJpcrp/LK9czAbdSW/OP0Ni0m/ wRVBYasNeBx+DcVVRd4vOyJ9zDn4RX1dr4JXzdjfD0IPzRGJmA9HWXz/KJfVnMNsgC71 iSQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713965261; x=1714570061; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bmaQzf01ImU89PHQrVzq0PujKy/T2pnrZwcrGlSMcAM=; b=dtrJqbznuQOdSlupExxXDeLXjQw6lfHy2EopWS5yQrGKxTQMEglq2dRwmOeIcRFjfU FlFn4q3oUx4OiPWq9BEiNXOlOdjlmQ4OcGVkGjVT5NnT/RQ3Tklh9WyJcv4Te9mVPKAP VtVDsOYqQpm0n5JH/se38G2gSm8Gh6BYudvcIj1degk7RDn1b1gKSVX2s7AZRLx4/4YK bKEAgxdhLK8AsGczCifKx47CQ77pkIKo+D7KXWXBavyhv7nzzmTmrn9RUn6p+hUmi7xJ vf1VbGIDJ9hoV9hFn+ANI4gBQpvMv3I7ZJb8/96YmW3AldAbVF1P9H+VIhTNZhvhIFi2 FdSw== X-Forwarded-Encrypted: i=1; AJvYcCVKBuvwsYxs23bOpffL2crd5PVki7pMqvdCKQ+PMEQ2pdxvGSgBOVP7SDCiTRLD6OLexPVT/N2ETKbD2IpNbXUSsKAsdj1oGzPOZfBw X-Gm-Message-State: AOJu0YwLpzASNbVpYyvKPWE0NpISQUrK4FU7WmQ2gTNU2QqBl/DcJrkc BFdf90mDqNvMA+VJ4LdtJFcMQ05BQ899q0QwnQidFW2+E3mFKYmLWikJxegGP5s= X-Received: by 2002:a05:620a:40d5:b0:78e:db54:e5fe with SMTP id g21-20020a05620a40d500b0078edb54e5femr3078820qko.11.1713965261163; Wed, 24 Apr 2024 06:27:41 -0700 (PDT) Received: from localhost ([2620:10d:c091:400::5:9cfb]) by smtp.gmail.com with ESMTPSA id h6-20020a05620a13e600b0078f044ff474sm6146095qkl.35.2024.04.24.06.27.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 06:27:40 -0700 (PDT) Date: Wed, 24 Apr 2024 09:27:39 -0400 From: Johannes Weiner To: Kemeng Shi Cc: akpm@linux-foundation.org, willy@infradead.org, jack@suse.cz, bfoster@redhat.com, tj@kernel.org, dsterba@suse.com, mjguzik@gmail.com, dhowells@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v5 3/5] writeback: fix build problems of "writeback: support retrieving per group debug writeback stats of bdi" Message-ID: <20240424132739.GD318022@cmpxchg.org> References: <20240423034643.141219-1-shikemeng@huaweicloud.com> <20240423034643.141219-4-shikemeng@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240423034643.141219-4-shikemeng@huaweicloud.com> Hi Kemeng, On Tue, Apr 23, 2024 at 11:46:41AM +0800, Kemeng Shi wrote: > Fix two build problems: > 1. implicit declaration of function 'cgroup_ino'. I just ran into this as well, with defconfig on mm-everything: /home/hannes/src/linux/linux/mm/backing-dev.c: In function 'wb_stats_show': /home/hannes/src/linux/linux/mm/backing-dev.c:175:33: error: 'struct bdi_writeback' has no member named 'memcg_css' 175 | cgroup_ino(wb->memcg_css->cgroup), | ^~ make[3]: *** [/home/hannes/src/linux/linux/scripts/Makefile.build:244: mm/backing-dev.o] Error 1 > --- > mm/backing-dev.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/mm/backing-dev.c b/mm/backing-dev.c > index 6ecd11bdce6e..e61bbb1bd622 100644 > --- a/mm/backing-dev.c > +++ b/mm/backing-dev.c > @@ -172,7 +172,11 @@ static void wb_stats_show(struct seq_file *m, struct bdi_writeback *wb, > "b_more_io: %10lu\n" > "b_dirty_time: %10lu\n" > "state: %10lx\n\n", > +#ifdef CONFIG_CGROUP_WRITEBACK > cgroup_ino(wb->memcg_css->cgroup), > +#else > + 1ul, > +#endif > K(stats->nr_writeback), > K(stats->nr_reclaimable), > K(stats->wb_thresh), > @@ -192,7 +196,6 @@ static int cgwb_debug_stats_show(struct seq_file *m, void *v) > unsigned long background_thresh; > unsigned long dirty_thresh; > struct bdi_writeback *wb; > - struct wb_stats stats; > > global_dirty_limits(&background_thresh, &dirty_thresh); The fix looks right to me, but it needs to be folded into the previous patch. No patch should knowingly introduce an issue that is fixed later on. This will break bisection.