From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4E58C77B75 for ; Tue, 23 May 2023 16:57:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237593AbjEWQ47 (ORCPT ); Tue, 23 May 2023 12:56:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237870AbjEWQ44 (ORCPT ); Tue, 23 May 2023 12:56:56 -0400 Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C46C91A6 for ; Tue, 23 May 2023 09:56:02 -0700 (PDT) Received: by mail-qv1-f43.google.com with SMTP id 6a1803df08f44-6239ab2b8e0so47797816d6.0 for ; Tue, 23 May 2023 09:56:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684860961; x=1687452961; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I895gSBgpzDKKLUi/M3iUfQpFGQN//aYkK8LK5AguTA=; b=H+8q953rBaCtbUBjtds4ypyS04rSQaWtkupNxKF2/A1Oudwsu6VeqeyNmNE4ZQVPyb jWGEsoy0Lv6ucIcP5cotvcq8WKJIqTktmE15usRCzFDxUKQp/qICd5lZnytTNXDM0sxr J9YAC0rBXQ8cnhdY6mrSauYpFGl9+uxiK5x1mPug3eVr6GqJfWM1lx/CWRi7UiUiwdKY Se5TDi/HDCGdbWNS1bO1iGau23MQ1RmeGFceohaQzictltml2naSWeb0rrWguoYDD0o4 VTZ0D6xqYHiNLuWGip0QGBDa1C4nzVeO3d0tuLwJ5VUSpANZ/+k71/rR2onzK/ZUZDsb zW6g== X-Gm-Message-State: AC+VfDx32nSxaMT6/Qib4Y4QDRdaeTp3uncHPu4/R0KpKPCRvOJQG72y v9OBWl+WWfz+G7ejXIq/CLGQ X-Google-Smtp-Source: ACHHUZ7flOXCsLoBxKovnaaX/oi0L/ZSk0yhITAbxyTXaocIhbpqrKl1r3JlMCNYZavegSmc6yz+9Q== X-Received: by 2002:a05:6214:2aa4:b0:5ef:a772:2731 with SMTP id js4-20020a0562142aa400b005efa7722731mr22618918qvb.11.1684860961501; Tue, 23 May 2023 09:56:01 -0700 (PDT) Received: from localhost (pool-68-160-166-30.bstnma.fios.verizon.net. [68.160.166.30]) by smtp.gmail.com with ESMTPSA id cz10-20020a056214088a00b0062120b054easm2895666qvb.20.2023.05.23.09.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 09:56:01 -0700 (PDT) Date: Tue, 23 May 2023 12:56:00 -0400 From: Mike Snitzer To: Christoph Hellwig Cc: Jens Axboe , Greg Kroah-Hartman , "Rafael J. Wysocki" , Joern Engel , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Pavel Machek , dm-devel@redhat.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-mtd@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 17/24] dm-snap: simplify the origin_dev == cow_dev check in snapshot_ctr Message-ID: References: <20230523074535.249802-1-hch@lst.de> <20230523074535.249802-18-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230523074535.249802-18-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 23 2023 at 3:45P -0400, Christoph Hellwig wrote: > Use the block_device acquired in dm_get_device for the check instead > of doing an extra lookup. > > Signed-off-by: Christoph Hellwig Reviewed-by: Mike Snitzer