Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp571863imn; Tue, 26 Jul 2022 03:57:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tMH8vd4cyfbRrJ+xy9U2z/kkUhgIoQb0lo2Q37dXMgLHh98jl8mFk6r+MQcBfMX0XInfZC X-Received: by 2002:a17:907:1690:b0:72b:4f11:66c4 with SMTP id hc16-20020a170907169000b0072b4f1166c4mr13077337ejc.562.1658833034999; Tue, 26 Jul 2022 03:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658833034; cv=none; d=google.com; s=arc-20160816; b=uSTPWXzgnuqDD55xXTHVGKtKl4qUEFqzBbQFOF4UAKtJNjWEbILTANLe4roVcbgkfx lBVCi/22Gc+HMG1Hjk6AgSiHlWTcJhBaxS5OuE7zI+7uw7l0cJKD/gINxIwXCRGdHN5m 42tVHgGOZPFueVt8KGv7TgvhXk740g5R8I+f17ozchiZVQlD6Y2I949UyTxahuoverga wGuEXyl2CTxNe94EphzWknEU+X3jwHvxypBvEN7LCgS6tnfjaWaT7aiz1oYUi0rCzoBh KTj06g4dgCva/MUDs5GGRpflyYKtAz2z311bS2hv9F6OdrG7a0gdcVJcO+T89/MFEnMC ss/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=dTjslqHC2m5bjtlcrxgFzfyWtGUdFSOkhfUlim1OkZo=; b=TKxOzwpDdWdZ/IQmOOw/tApDbOEmMCfrrhYtHkldcbUhFMCG6uWjI4qzkfRD2M2iA4 x5UTlh2gdkEEivinIgjc4PU3udWxY04LF9EmphCQy9UmalajLmSZlSo/R1WLZCYpSRed ixE+rKQU2x/qHU/uU5wokMbrs8G3Bu9q5DSvWBuWVqiCPQ9wys1A4XElg0AtcM7FYlBS oLG2pA1DZXReveTU7vFrdf3KLbOYZ0M7vN4EmnNXcqH6tvX3oekwQOWoWLgLhlKjgdRF UgZSg/moC7qjdgTaRiWrHfnikjWemyiOaASGd/SYMDgS23MTLrJMqhzdIa/QLv68fYoN DFjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=10C2b64q; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r22-20020a1709067fd600b007136091f459si13722493ejs.302.2022.07.26.03.56.50; Tue, 26 Jul 2022 03:57:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=10C2b64q; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238648AbiGZKZw (ORCPT + 99 others); Tue, 26 Jul 2022 06:25:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238483AbiGZKZt (ORCPT ); Tue, 26 Jul 2022 06:25:49 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1A852655F for ; Tue, 26 Jul 2022 03:25:47 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 765881FB6F; Tue, 26 Jul 2022 10:25:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1658831146; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dTjslqHC2m5bjtlcrxgFzfyWtGUdFSOkhfUlim1OkZo=; b=10C2b64q8sQX5uZ0fiiNqkYAyzg7kEANHN2lPQgcfB73OTDwVgV6AWFUT7OocY0ZkjTwnp 2uRvWk1di0w0q4folY7PlD+c5KI2OateGxhlI5J3oLwzsR/QO1IpHMHjszj622HD3aOfwF eUfBSKKAAvbroDRcBBZ4yjZtZOyCpEY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1658831146; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dTjslqHC2m5bjtlcrxgFzfyWtGUdFSOkhfUlim1OkZo=; b=7tAGV9rsgznkHibpivxpiStEksga1YolBNQTnDk7UZwz0fLjlcIB57iRFv4HJlsyAcZf9Y Mr+Cbiyg8X99MZBQ== Received: from quack3.suse.cz (unknown [10.100.200.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 6482C2C15D; Tue, 26 Jul 2022 10:25:46 +0000 (UTC) Received: by quack3.suse.cz (Postfix, from userid 1000) id C616DA0664; Tue, 26 Jul 2022 12:25:42 +0200 (CEST) Date: Tue, 26 Jul 2022 12:25:42 +0200 From: Jan Kara To: Xiu Jianfeng Cc: akpm@linux-foundation.org, jack@suse.cz, neilb@suse.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] bdi: remove enum wb_congested_state Message-ID: <20220726102542.fnf37ypbbhnudonj@quack3> References: <20220719083349.87547-1-xiujianfeng@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220719083349.87547-1-xiujianfeng@huawei.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 19-07-22 16:33:49, Xiu Jianfeng wrote: > enum wb_congested_state and the member 'congested' in bdi_writeback is > useless since commit a88f2096d5a2 ("remove congestion tracking framework"), > so remove it. > > Signed-off-by: Xiu Jianfeng Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > include/linux/backing-dev-defs.h | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/include/linux/backing-dev-defs.h b/include/linux/backing-dev-defs.h > index e863c88df95f..ae12696ec492 100644 > --- a/include/linux/backing-dev-defs.h > +++ b/include/linux/backing-dev-defs.h > @@ -28,11 +28,6 @@ enum wb_state { > WB_start_all, /* nr_pages == 0 (all) work pending */ > }; > > -enum wb_congested_state { > - WB_async_congested, /* The async (write) queue is getting full */ > - WB_sync_congested, /* The sync queue is getting full */ > -}; > - > enum wb_stat_item { > WB_RECLAIMABLE, > WB_WRITEBACK, > @@ -122,8 +117,6 @@ struct bdi_writeback { > atomic_t writeback_inodes; /* number of inodes under writeback */ > struct percpu_counter stat[NR_WB_STAT_ITEMS]; > > - unsigned long congested; /* WB_[a]sync_congested flags */ > - > unsigned long bw_time_stamp; /* last time write bw is updated */ > unsigned long dirtied_stamp; > unsigned long written_stamp; /* pages written at bw_time_stamp */ > -- > 2.17.1 > -- Jan Kara SUSE Labs, CR