Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp216196lqp; Wed, 20 Mar 2024 20:45:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVp9b3087LBotBu3h7weKeS4bGAdGG1h9SAcPI2WK0Hs6B0Ytz+hvjhifq9B5iqoxSyuMT/1IFnjnxj21xfaZXY96ZO5jVsBd+noUGJNQ== X-Google-Smtp-Source: AGHT+IGfuCi57SHn4vvn36BggPvLMf7qLOTKVyfJvJ5VKWrA+LthLy0h9ujHeT/tFlSsZVwOKMrx X-Received: by 2002:ae9:ea04:0:b0:78a:8b6:4889 with SMTP id f4-20020ae9ea04000000b0078a08b64889mr2376530qkg.25.1710992744956; Wed, 20 Mar 2024 20:45:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710992744; cv=pass; d=google.com; s=arc-20160816; b=JhSxMotwj5VBQO2oqgvSJ0DTrLnTbNFrh1UR2YsPut14F5cbqSmOOjFnNW5bt1b3pq KkVeUsq1lq+hS9wpLSn3Cota+SaPEdxUa2pB8wNZ1jYJnJJmRFOp4jbhEOhLuz37tc2T fuzIbMBtJkuIcIJx2nF4iSVBYFv3q9XjRjBgKutnR1sbDXVlyYkLzUZu7OD/awU5Pbvk XaCbGqiGi10ozYo4SxWiZEEonmFtoIMjR+pZSS4XG4hw0Eo7pKjGvbbxrl0PmwL9/VBx QzAKMjyIxxDCwrDng+r19PudBcJtU9ZxNWCHRDZ4MQVIp/YTYPLQ+Ab+1PfoLgZxl14p eiug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=DkCUbgUlDM4SAH8XvzqE/5dRjAfdSzNmVY0bLr5dSPA=; fh=ytAxz69HzZPbZXQQ+QtSjowkGdz4aZw5JOT0me23EF8=; b=knRVOJZjcNhET+btJh8KTqD/7u3xGVKKpIJIzO6ZrDUIHq+j8BEXqGhLoU+treCR/q hVmfHg6Ym5ORpDMGIzaM0qS+ERWs1q/Er6e3lERZhtN4qlXrMoHss51pTWhZOAfaZ7as Cy7+n/r4dsQyi5SCJy6Zk5ushSoXBOKjuMioROgRMo7XbDMZn4s7vS+weRL+eqHCk9cO iYpKaZ7lzxFXWEkJ5ebmPxeWxnShw2tzS9t2q1XERnJp/Q3k6c0rOToXVid/27Pe8Xhh j1xHcTvJGlEcXOEwf1IO7k9ppy2AFnCif6/loXDXlYUfkbi2pbsihG/IiTm5vvjdigsg eBSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-109630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109630-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g20-20020a05620a219400b00789dc60c293si4343397qka.708.2024.03.20.20.45.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 20:45:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-109630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109630-linux.lists.archive=gmail.com@vger.kernel.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 ACF831C215EC for ; Thu, 21 Mar 2024 03:45:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFF62BE47; Thu, 21 Mar 2024 03:45:36 +0000 (UTC) Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C6576D39; Thu, 21 Mar 2024 03:45:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710992736; cv=none; b=mCF+ZtsLeiCdvnxC27nCHsHiWyMFyBRP5oQdD0ukv2uNeOipvuJDeWsMbvId7/s9nGWz6fiWxuY0tEn+NmJa2NZtmEpEh8Xa8AYmoLlig/kCqttdKJMV4hQM5ocfluleLguKecai9kXr7efVyV/Lci/+E9qHZRMDBOeF2bgQRZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710992736; c=relaxed/simple; bh=NHjn5I2E8OUKAyyvwBV0GVI+3EQB1r6fWHAfZDjadSM=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=W4hNK1umG+2dONgIj4if1XQRsOzWUzRumOZwQ3UVWWWLJ51IFyhgb6+px+NU6SwIAJPSZCnZi75ZfDF0ztkAn2Of1qGLcCj7c6Sq91oGBQfjDM6jDEW1Lkq65R0VnbjOeLDwkJJGKRh9fzHeZ3nRHtIMKONeHZirTfzT4Yw4lzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4V0WZD4qL6z4f3jHt; Thu, 21 Mar 2024 11:45:24 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.252]) by mail.maildlp.com (Postfix) with ESMTP id AD7191A0C84; Thu, 21 Mar 2024 11:45:30 +0800 (CST) Received: from [10.174.178.129] (unknown [10.174.178.129]) by APP3 (Coremail) with SMTP id _Ch0CgC3w5tZrftlDzDuHQ--.36010S2; Thu, 21 Mar 2024 11:45:30 +0800 (CST) Subject: Re: [PATCH 2/6] writeback: support retrieving per group debug writeback stats of bdi To: Tejun Heo Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, willy@infradead.org, bfoster@redhat.com, jack@suse.cz, dsterba@suse.com, mjguzik@gmail.com, dhowells@redhat.com, peterz@infradead.org References: <20240320110222.6564-1-shikemeng@huaweicloud.com> <20240320110222.6564-3-shikemeng@huaweicloud.com> From: Kemeng Shi Message-ID: <956133f9-f758-002f-64a3-4c44d4bd04d5@huaweicloud.com> Date: Thu, 21 Mar 2024 11:45:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit X-CM-TRANSID:_Ch0CgC3w5tZrftlDzDuHQ--.36010S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtF48WF4kGF4DXF1fWFyUJrb_yoW3Xrc_u3 y5Ar4kuFsxXF1kW3WxZFn8JrZ8K3ykWF17ZanYqryDtFn5AF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/include/linux/writeback.h b/include/linux/writeback.h >> index 9845cb62e40b..bb1ce1123b52 100644 >> --- a/include/linux/writeback.h >> +++ b/include/linux/writeback.h >> @@ -355,6 +355,7 @@ int dirtytime_interval_handler(struct ctl_table *table, int write, >> >> void global_dirty_limits(unsigned long *pbackground, unsigned long *pdirty); >> unsigned long wb_calc_thresh(struct bdi_writeback *wb, unsigned long thresh); >> +unsigned long wb_calc_cg_thresh(struct bdi_writeback *wb); > > Would cgwb_calc_thresh() be an easier name? > Sure, will rename it in next version. Thansk! > Thanks. >