Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp163437lqb; Thu, 23 May 2024 14:08:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtJztQwzyTl8laGJ6mx2mdB50qpcSy4D4Bq6uSPQtaP7zYXl+rncp31Esi14cwrRpKCbPyTEqZ4FaO/gdbnH7wn7xlMk1mdQKS48fPAw== X-Google-Smtp-Source: AGHT+IHVdvXu+NGCIQMrE0fH1G2vKXRaThrrHL5hWKYc6TMHOP/6hEsErpRuQA0idfQlzx90SWBU X-Received: by 2002:a05:6a21:78a3:b0:1af:37bf:d7de with SMTP id adf61e73a8af0-1b212ce3e56mr775568637.7.1716498494900; Thu, 23 May 2024 14:08:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716498494; cv=pass; d=google.com; s=arc-20160816; b=Q+yOk/qPWhBB/D7737MHL3f/UBQpT4p2LU5cdRphM28SFK3LBWybm9H8qqhCv1LVPH sZaTzEubmrIMsKI8KuhWOmu+0zndSr+rBei54LAKGqbp4yrDi3lC4dOfYbN89AY7P4Qo akd3wkG5PMr/3k4vkiJW759sdbYdqnIIJMShSRuc8av0xetKzicr7fWtsRQyyX1bHpmt RSVcnhV5OQJtFJBTAyoM5EhcwXjevkN2Nd6ZVLHvk7prcEHRj8mkrhdQoPTJTZ0Mr0C4 RSv2VGwyM5AYFDAJIqNboHEdLkzTyj+g7m3TwHA7Z+VSC1QMP5T4u83P+AcWhJvooCtu RdNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=GSO2GJxf5LIFsopVNpRkthQze4Dv+1RzRCMhXnyvo0I=; fh=0+VUdQRo01VR3hQbwyDD7ZnOwPGoRqyIeiyk7UbEyQk=; b=vrPM2JgjK/dbEwX7i/eXFUnbMONq8W8hw1UjfkpcUu/eyAWjlixEsW/6CMv6gRXAcK tmoNuMebA7hb9b1j6cnIPKgqRv/5qsfWRgS/HL4C4S1mAVNDgHnKuItNXd4KsyHTHKXJ +WHlDPtrS7HgnTix/r6Ol+qdaigtd7Xe0bkmyMcI9XSqDx9JLPIs6vrR8sbAJYDqv8iD +QAiP6V8FpmqXdwuS2Yz8wTnIdE+mDNb6dNAWiHvLCAen4ad1fM41R14T8XDelVpy3XH WnSzeGSB0CU3Xvac2NeeCJ1Qgl07OPnXM3DFZwhAy1MNz30NThful64vmo48zgN69p0t wuRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=Z2nBb5Pl; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-188002-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-68227b758a8si15805a12.311.2024.05.23.14.08.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 14:08:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188002-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=Z2nBb5Pl; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-188002-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E365A2825C6 for ; Thu, 23 May 2024 21:06:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2A69127E0C; Thu, 23 May 2024 21:06:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="Z2nBb5Pl" 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 E112C47F5D; Thu, 23 May 2024 21:06:03 +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=1716498365; cv=none; b=kQZEX7P6W0wEmyljoDgn3sHev1lk871prJVkuByxOGxGcD1ohnCPw7DO6gKQbli1geq/FvONouBOD0hcLv60gQoFo4Im1Sj4rGF2EPbH2YahDL64Cd/1BHYewCqkzKnWgGjrdVcjFnJM734NVGUGVGAZjDxAr4PZnvzoI+XnBJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716498365; c=relaxed/simple; bh=tLmdHCjnuUDljef5WOT226x1/maTdvREQJpMX8NZ6a0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NG7q2QiISaJZXIM3NmPb2IK4chI7O33VILSpUBLdAqCIM+dbDNjGjL9dDNdnGZukZ1Pd7kzflwalyENQnyu13sBoq7AEduwG868qf63Ap6Syedja4MmDKZVxmV2JMbn8r/ud/CE1GlgH6zYeyUs7QGfMjiy9l2j2B7Z2TD3mlII= 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=Z2nBb5Pl; 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 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=GSO2GJxf5LIFsopVNpRkthQze4Dv+1RzRCMhXnyvo0I=; b=Z2nBb5PliQaycAxn W1y6YgjA2KNUcu3q2pQITu8VrdVBEDs9AINJP6Wu/UW+kCMjAMFyBUaxkiJLfr1GH0us4J697h6g8 eKhiVcZDcGstsr+i+KQWSwufWyoca4lqw3kHV6Dde8XGI2NCsyhzgVRt+Hj4pLZeidLI2Ebh4+oxm 1tlV7MDThmOLz3vgLUYRWuRYe53ZgHiNgmOvSBdyMVODgYcaH2Y0ran0UK9GvjwKNxJi3OQJObhnH WdQt1pAKizXGqYhflV1CCrTEZerJ+6Ioe63FN3htfO5ywTlXTCEyZdX/3FeYznE/nEEzpUDN72UI/ bXoGY20h4AbSCqhKMA==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1sAFdK-002IRW-0c; Thu, 23 May 2024 21:05:54 +0000 From: linux@treblig.org To: agk@redhat.com, snitzer@kernel.org, mpatocka@redhat.com Cc: dm-devel@lists.linux.dev, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH] dm cache metadata: remove unused struct 'thunk' Date: Thu, 23 May 2024 22:05:50 +0100 Message-ID: <20240523210550.309116-1-linux@treblig.org> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Dr. David Alan Gilbert" 'thunk' has been unused since commit f177940a8091 ("dm cache metadata: switch to using the new cursor api for loading metadata"). Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/md/dm-cache-metadata.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/md/dm-cache-metadata.c b/drivers/md/dm-cache-metadata.c index 96751cd3d181..0ad9dc1824fa 100644 --- a/drivers/md/dm-cache-metadata.c +++ b/drivers/md/dm-cache-metadata.c @@ -1282,15 +1282,6 @@ int dm_cache_insert_mapping(struct dm_cache_metadata *cmd, return r; } -struct thunk { - load_mapping_fn fn; - void *context; - - struct dm_cache_metadata *cmd; - bool respect_dirty_flags; - bool hints_valid; -}; - static bool policy_unchanged(struct dm_cache_metadata *cmd, struct dm_cache_policy *policy) { -- 2.45.1