Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4223309imw; Tue, 19 Jul 2022 02:18:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sn6B311WQmwoSrwAaLyh7f0C3sRZg8ag+MYbal4tMxOs8A36Mcci37oqZc6cruEDlxuR7c X-Received: by 2002:a63:84c7:0:b0:412:a0b2:3add with SMTP id k190-20020a6384c7000000b00412a0b23addmr28631624pgd.511.1658222311835; Tue, 19 Jul 2022 02:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658222311; cv=none; d=google.com; s=arc-20160816; b=n0NApcK15pxUdOglEIaZC5+GOxs9UVHUS45tsKejV6D7rTBlV6x+UIeQs2xvQUu1cV DW8mLcNdzdx3mQRZNudCkoJCqwDedwlna3Sw5owA9YJ5+Rp3PUlm50GOF6ksjLaQouFW NsGejlnC39h7HfknY/PKUc+aUYM9GMVwWodXXoUD6e+bu//m9apM0I4x9RljM3kgX1Dd Ehu6PG6/WBoNphoqoAJgz5ROjLN7XZ+z1woHGrcfjeDAHI60jFk/g5VjhubSCWSEI1Bi 3D9EqTcasjFijQsukDw7P56Turz2YBbaGzTGULrjjy2iXbCA5yyhrRdeKHFW7k1XLkKo +OWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=tWQNhNTmOAC0oVKlW3WKW+PzGnchYNTuG1YpsfXVr2E=; b=zTdfJpmrMBcMGx+dzdaP4vgTV3z8P+nzarSJM2eykFt9OUUHb4tJrB/0VEFHktYHVA IiHytLuFAh7uCDb8RwRSOzPPnBSGpcS02FFUXVbswJi783Ld5kfbj8/Xintl/ArpGGuc QUY11j5LLwA70JJ1d3x+HqqV3JxDjE4n+wlNLnVhM71Nm1tx2TnI5eIvkPBjWB+6a+Qr cSk/5T3WqApx1wMFJ/KR27v4Yw8Lox6Li3AwtD5MHutj9xx+nZbRouK+l77SWzNyQdty XJ/wZpvk9Z02qDE7iIrIg979LsGAYxJlVy7w/nMqXAkVWYt9/uCFyQXtcKpSmOLvbLBY OC9A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cp7-20020a056a00348700b00524cfcbae7csi17092645pfb.41.2022.07.19.02.18.17; Tue, 19 Jul 2022 02:18:31 -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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236922AbiGSIg1 (ORCPT + 99 others); Tue, 19 Jul 2022 04:36:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236914AbiGSIg0 (ORCPT ); Tue, 19 Jul 2022 04:36:26 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A33B824F17 for ; Tue, 19 Jul 2022 01:36:25 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LnBsc71crzVgTS; Tue, 19 Jul 2022 16:32:36 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.58) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 19 Jul 2022 16:36:24 +0800 From: Xiu Jianfeng To: , , CC: Subject: [PATCH -next] bdi: remove enum wb_congested_state Date: Tue, 19 Jul 2022 16:33:49 +0800 Message-ID: <20220719083349.87547-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.58] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 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 --- 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