Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp234162lqp; Sat, 8 Jun 2024 13:49:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXecuQIrZOn/+DCp3t4kr/2KgcnAs6PTMoiaJBDu46MeHIjfk+5W+ULaoDsL1MJd9SGcxGUYBSU/sH9QrTZGX2NVpvH9+t+ZpwZbo+enQ== X-Google-Smtp-Source: AGHT+IFfXx8U1zmOdUrs3dSUyq90qx/iXozo9fTjDif+5XC3/jMaYIg2tlgwDFO7t86hrkDp37Xj X-Received: by 2002:a05:6214:1311:b0:6af:c2ec:3313 with SMTP id 6a1803df08f44-6b04c0a1304mr158252006d6.26.1717879771172; Sat, 08 Jun 2024 13:49:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717879771; cv=pass; d=google.com; s=arc-20160816; b=yQxwlDms23JQZ7ocayee6t0JScxvGPFW+nLyxhv+8jAHmmAXE56eQF/nsnYJNJq/k6 5ql6ML5LTptcPQETmuCmYviCgSLXenveP0qWs8NkFqgvoFhcoOTscy1XWPOk54Od3P0J 5AzRo29pljJFTg1NFWFVPM823GeR6oD9mq47FpEeeB/PWG7Y5V+6opPEijeJPec1y8J7 JWY7mt2E4tvh0mzKk0RsqVChNZZfeMC8jWeEsb3PSlYQ2WLwN3rBzXPLiORvgzeYdh3U EumRC8wTvC/Czk4DY0JbEjb10rKMNmfqemH0ki20NMNfaE4MuiaIKis2IFTrwTxbJhdH kZzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=rpf2zlxdcYZsCHLf8SwDT+0k74c3JFHCMQ1U6HltCD4=; fh=MtOpWRWiBpBGmJO2d1RXoH09i1wWbTBGgvklg3JQyQE=; b=qQSeQWDFH+lN7686ifvTSOB3w9XlQoVRQYDYB6wvmjUeG1VBOOEwcNs79LbSRtU8Uo uS363yTL5K4G79VuOCdWP6WxAZ9h3YOGtGLtRLsAUyIz6c38eOaQgwt2tLaMConEuayo 5/PhvssJWnljizYvi3JSVH2IltLpPwLrhGc1lKuX4viYAA7VVLggiGDMYIKAOVnMo6W9 dGNosX/zmrU1LMkf4XYCvaFWon2ilY5EwUB265nCKG40h8NUQcNtf7Gpa65jkPM61PAB w2n0axIklxx7Z5C8XALdTduW1ZJlJdlRl01WsDIAfqTzIxzCnpA4I6Rqt1HV6ERpJ4iC GIXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b="bc/CoZuh"; 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-207186-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207186-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b06823906dsi25780186d6.281.2024.06.08.13.49.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 13:49:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207186-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b="bc/CoZuh"; 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-207186-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207186-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C46931C20CF8 for ; Sat, 8 Jun 2024 20:49:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE4D821A0B; Sat, 8 Jun 2024 20:49:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="bc/CoZuh" 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 237688828; Sat, 8 Jun 2024 20:49: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=1717879764; cv=none; b=B4RlR4hOjzn/xSDZbbiR5s0bQEnaELoe6JDt/oPqNlfWetm1hvykfSU4ZHOqNO2/bgyZ7mPumfKjBRJggb8DcsqaBsLx+Cl9dd8Suq/qJ9mxyTjtiEp7LQWDOxyUOfaatwNJl2S/Ap1kTf80X6i9Px4XqDENib2FohbuweRPCjk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717879764; c=relaxed/simple; bh=0kGZD8MX2St5muruzo0JFVrFwFHiT4IiWX1Ui3nLMYE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZneBpr7Go75vU56cq2Arh+vr3Ei0yFlGlSVT85UM7B2fwU2XfP5Hpbxs06Kg63CJSeRB56iNHsk2UCxKvHHTwm1nVC8l03oyUnHYSpFbs1PlasTdT8HwtADh+qaml39KHTQ+x4qACLVTKx/cw2o+1Z1nLG+FpVzq23Mp9irWvUk= 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=bc/CoZuh; 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=Content-Type:MIME-Version:Message-ID:Subject:From:Date:From :Subject; bh=rpf2zlxdcYZsCHLf8SwDT+0k74c3JFHCMQ1U6HltCD4=; b=bc/CoZuhS83TzMBI htT2lW1SIAP2l7vgHlD71gTcPut2fREIOfKVEeHSG2koSrMu8NcGi9GvcuTa8GGhlDOPOsDk5/zBn dAclCMdMbh1bXK4FPHwfK/djMNu+bh28T4qwZaqiuAs7xS6yUskcra6NYwuItYOKLXAjl5NriB6w0 Xf7R0/K1DQTZ4WaX6VAnZN9IDTXvahb5/1PYaPq+HmIYo+VYEQOUhaK0gcQFXzgK+8HmJqFo8X+Uf VDzu09/ysFrVVIWLErSN7X539dsxgbaBh/QhfTFSHSHFQm3x9vND2jl33dCNPFI5mNjmTSXL+63N1 641HfbequAYgRe2ufw==; Received: from dg by mx.treblig.org with local (Exim 4.96) (envelope-from ) id 1sG2zq-0059yc-2W; Sat, 08 Jun 2024 20:49:06 +0000 Date: Sat, 8 Jun 2024 20:49:06 +0000 From: "Dr. David Alan Gilbert" To: agk@redhat.com, snitzer@kernel.org, mpatocka@redhat.com Cc: dm-devel@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dm cache metadata: remove unused struct 'thunk' Message-ID: References: <20240523210550.309116-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20240523210550.309116-1-linux@treblig.org> X-Chocolate: 70 percent or better cocoa solids preferably X-Operating-System: Linux/6.1.0-21-amd64 (x86_64) X-Uptime: 20:47:45 up 31 days, 8:01, 1 user, load average: 0.00, 0.00, 0.00 User-Agent: Mutt/2.2.12 (2023-09-09) * linux@treblig.org (linux@treblig.org) wrote: > 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 Ping > --- > 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 > -- -----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/