From patchwork Wed May 22 17:24:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dr. David Alan Gilbert" X-Patchwork-Id: 13670995 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (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 6505C2B9C3; Wed, 22 May 2024 17:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716398723; cv=none; b=TJ3sib4Ignt2pwekTgIKLnhMlk6VRKC0+Fxlh6ASwx3C5siF+SjQAX1f5UaHc/Oeq+QPhU74KnrO6mQZCgVKD8gX++4JDzyxAh5OWbQ0L9u5ZGYqHBCK6J46Nwt5Ox+rp55uC38zS57T5u94gDB4sCHP8afI8SsT4ZqmfbZaG4Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716398723; c=relaxed/simple; bh=QnU6TLnYhrKP0IhVowNIjwPrz/U8ertoOdukGfKUadw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uIHOSlPuxU1HOzV25kTB2W942HQ2STeEi2t04Ca8/rUjYWaP2d6Vu47Vs2Z9f3oH1Iw/TcveWs3kdVOylLdbLUL60Nx0rdK2tszRz3AIrs/L4rKzd6iSfdib1Bbr08nSpOzugTiD2xduL95GQfkDzFm50WF8D9UM6JTVmTforo8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=n56wN4hb; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="n56wN4hb" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=V5gX0iaMm0XLDVaVLLJuDodgb7XRDFc8VwDQ9Wvel1Q=; b=n56wN4hbZpnW7D2u TH9ZMYWx5fvF+SHZAV3WEgtpYmRolbhSDhtMmRT1MEnGjnmKEGlGx936t8FTpM0PqFhWK7R0OMke5 cYsQceOI91L+Z9CFQKXWTcA7xC4hxtYjNONCflFKQtwGwJ07t0BLiyPVhPUoP+Lw+8rh41JLzQn6I a6ZMWBXQe70l+akHdh2Fk27xQmHj0z6INJ9mfa4gf6bje35IUwCBN7zjDH92A/YE521McaCYbkxMX lC3279B3di7BBQFb6BDc2UEYwLDdfzAUVS0AwF0QNvXAXfuOepaOj1sWTIBBHja+Qzgd+ve0U6sjW zWBR3aGVj05yDVsBGA==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1s9pi0-0025JX-1Q; Wed, 22 May 2024 17:25:00 +0000 From: linux@treblig.org To: tj@kernel.org, axboe@kernel.dk, yukuai3@huawei.com Cc: cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH] blk-throttle: remove unused struct 'avg_latency_bucket' Date: Wed, 22 May 2024 18:24:58 +0100 Message-ID: <20240522172458.334173-1-linux@treblig.org> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "Dr. David Alan Gilbert" 'avg_latency_bucket' is unused since commit bf20ab538c81 ("blk-throttle: remove CONFIG_BLK_DEV_THROTTLING_LOW") Remove it. Signed-off-by: Dr. David Alan Gilbert --- block/blk-throttle.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 80aaca18bfb0..0be180f9a789 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c @@ -39,11 +39,6 @@ struct latency_bucket { int samples; }; -struct avg_latency_bucket { - unsigned long latency; /* ns / 1024 */ - bool valid; -}; - struct throtl_data { /* service tree for active throtl groups */