Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4202656imw; Tue, 19 Jul 2022 01:46:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1stI7kfZayGkH5VZFT5lQW7+jlQ7z59IPv5TlCCUPdwgP/E5frBUjdomYS4GA5zbpV/89qd X-Received: by 2002:a05:6402:28c3:b0:43a:6d78:1b64 with SMTP id ef3-20020a05640228c300b0043a6d781b64mr41985523edb.93.1658220389840; Tue, 19 Jul 2022 01:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658220389; cv=none; d=google.com; s=arc-20160816; b=ct9BbpHs0kWhAfCGh+jouOnN8AFvJWdXoeZzvXC2JtoiIGgHGS7FGIiwk61aeIjFLl xNyzV2FmbN/brTgnFv2y7ZX6tUmP8QbRdEerMB/0xCJlGcm3DKEUEZIaz9fMo3V1o3Jd L9BfbMc1JlJFtMoZumw9fHxfi7GU+X0OEuMcdsISUE/LU5GV8qMUKhwMj47EGLHnZCxJ oHnGaAawMzu17tPtOvtH4VBqzjzaahxWSV4l+F8AHE3ChpGeIABKa00Bco9HbmjZP12f 7S4SbUUB1ZrY1YjgoIOUikcgfhoGp5MFdEgRp4O1MOUKPQzPpJOO0vPj16SpUVlNgPGd 1HRQ== 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=uwT145/sVvlbS5z37dhn+kSnYAmz4HQjsz5it9iOrxP/nZSgHYwNh6PLGimxlz8fj1 cFURlEnPkwQpTOfJrFwe3jAdj9av5qwP+lQ8JVrI2qEsBvAOyELP1FZO8w0ZCWhdJVxj PB43F9nugdzL1bITmB29hijOSeULL1G1TWC/atNrH5LaClfBeTdJAb1UPHtBNQH6eC2U bYh3VpC9mRfaMMk2/gtAHkockTdi/GXCLPEYyc3MsI0GlyYtXzbw12PDZsJ78ou9BBuu /zs2HPe4wvZVgH1t6KrBaeCl2JDrxwnJvVmbHacA7X90lG96XzRJKI+usEcuPnBdarDR Zqlg== 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 z17-20020a1709067e5100b00711f4c750basi15375614ejr.940.2022.07.19.01.46.04; Tue, 19 Jul 2022 01:46:29 -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 S236167AbiGSIc4 (ORCPT + 99 others); Tue, 19 Jul 2022 04:32:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229763AbiGSIcy (ORCPT ); Tue, 19 Jul 2022 04:32:54 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F39524093 for ; Tue, 19 Jul 2022 01:32:53 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LnBnR3TbwzVgbG; Tue, 19 Jul 2022 16:28:59 +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:32:46 +0800 From: Xiu Jianfeng To: , , CC: Subject: [PATCH -next] bdi: remove enum wb_congested_state Date: Tue, 19 Jul 2022 16:30:11 +0800 Message-ID: <20220719083011.86894-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: dggems701-chm.china.huawei.com (10.3.19.178) 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