Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp2002706lfo; Sat, 28 May 2022 13:28:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeC0QSxpufO8Fv+pdB4hwNFJPzkMXIJ+n49RuCqF8Z49jTYcC2vPfztizz/fUoB/DzNXN0 X-Received: by 2002:a17:902:cf4c:b0:161:e3aa:2708 with SMTP id e12-20020a170902cf4c00b00161e3aa2708mr45249406plg.127.1653769700728; Sat, 28 May 2022 13:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653769700; cv=none; d=google.com; s=arc-20160816; b=bC46bGajh7yyy7Z5putcTYwFRrgfvR+9a0kezsd0vi+vbpFBHb9nIQpM9lZHGfaNZr SqgJjo1+me+K6rwTSN6uQprvZU/610ieRRBrTK3emznCHzPK17zDCj28755CT9YLq1+D Om7IbtJJUQYBwh7EL4ajcNzIOi4DIvOatqU9MsEBD+eEVagMcUmaW8yeD7kwxQE9ktqd Zg1751+6CiybrT/kHXnM3d6M70+PJx3semsosIaTRHpzTEctPNDXDoVaMHhgNVeFSdpT mi/mCKBT/vcaveeDf+DVMfoCwdDQjJHVy9qxiqWBA5vZVIMNJNMLs3EuiQSLmFIIugt3 EdZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=R4yfNLMAlYynS3UaTQ7HtNCV2fXgj+2+kT7uRe7cnXs=; b=ZlZaqWY+XaZ+RBwOXiHp3ElbWJQ5eSjncZOMbN0r+IJAvh3QwEH4zwG5SVmFCpen7F bS4pb3UwMGoI83CuvpfxW9TFuy0h+C9Qs0qSpn8ohzXAMqVKP+BA5uNZplnMk9Ro56vQ tSxrCOKpILfL++iXq2bbDAZtZ2v3XZqiNLkHHMdNMVYsvB1+pF1ZvKts75/mBiQq/lOo mHzpBYs5o9Cqb8CK5evYtF91wr9RhNwvYzfz1bRuHvRE5chSFgSCMn2Ya6gB36hXZ8yZ J5lO6AUzf+zRM7aEF4XbYXx7kBoG4/kdrDt/wRu8CCIPDoBDF1u5iNNwWrZIH4RkZwhY yl5A== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id nu14-20020a17090b1b0e00b001dc61ae509dsi8279975pjb.103.2022.05.28.13.28.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:28:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4384A5C84F; Sat, 28 May 2022 12:38:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355447AbiE1JrO (ORCPT + 99 others); Sat, 28 May 2022 05:47:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241279AbiE1Jqf (ORCPT ); Sat, 28 May 2022 05:46:35 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42FE465D3; Sat, 28 May 2022 02:46:34 -0700 (PDT) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4L9Gxh3NvrzjX0P; Sat, 28 May 2022 17:45:28 +0800 (CST) Received: from kwepemm600009.china.huawei.com (7.193.23.164) by kwepemi500015.china.huawei.com (7.221.188.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 28 May 2022 17:46:32 +0800 Received: from huawei.com (10.175.127.227) by kwepemm600009.china.huawei.com (7.193.23.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 28 May 2022 17:46:31 +0800 From: Yu Kuai To: , , CC: , , , , Subject: [PATCH -next v3 6/6] block, bfq: remove dead code for updating 'rq_in_driver' Date: Sat, 28 May 2022 17:59:58 +0800 Message-ID: <20220528095958.270455-7-yukuai3@huawei.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220528095958.270455-1-yukuai3@huawei.com> References: <20220528095958.270455-1-yukuai3@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600009.china.huawei.com (7.193.23.164) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Such code are not even compiled since they are inside marco "#if 0". Signed-off-by: Yu Kuai Reviewed-by: Jan Kara --- block/bfq-iosched.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index 8c7020f8cdf2..79e6a60d61d8 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -2321,22 +2321,6 @@ static sector_t get_sdist(sector_t last_pos, struct request *rq) return 0; } -#if 0 /* Still not clear if we can do without next two functions */ -static void bfq_activate_request(struct request_queue *q, struct request *rq) -{ - struct bfq_data *bfqd = q->elevator->elevator_data; - - bfqd->rq_in_driver++; -} - -static void bfq_deactivate_request(struct request_queue *q, struct request *rq) -{ - struct bfq_data *bfqd = q->elevator->elevator_data; - - bfqd->rq_in_driver--; -} -#endif - static void bfq_remove_request(struct request_queue *q, struct request *rq) { -- 2.31.1