Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4638775rwd; Tue, 23 May 2023 10:14:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5PUT4eBQEEHQB8eub8qt3X9krsrX3BnoGJn/Vk9czWRUa8bdLQv1dV59v+JUQtbWtWjNjD X-Received: by 2002:a17:90a:4ec5:b0:250:acb7:21da with SMTP id v5-20020a17090a4ec500b00250acb721damr14373128pjl.38.1684862049212; Tue, 23 May 2023 10:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684862049; cv=none; d=google.com; s=arc-20160816; b=fxryfqrfA8bNwTSHS7+LttEEQm8DHMXX4TvfgE30L3HIqPh0MjczCfI9k3YpLROph4 mQKUvIK8FrSFCbXKIvU4LYGjOEmpXedjiJmDPxCjJ8lGpZ3SgC02llV2JQqVE2BFdvO1 7RphV7ba/ReR0lxAAm2D05acK61rrr/dYKiXr04e6m2zUhPpsb4EcMrtUVBeTKA2Y0YQ vaajPoi3L0VX7nNin2jB9ZF5IqnAr42CujSDFwEs1n4Q0chzv3T3rzMXhLUj6sM4PD4t nrKYPQ3lAi18tjQMjb01Y39M6EcJXfXT3vgbwmzWmQJWgXMuY63zb8fe2SNdrMVrlTMD +KLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=I895gSBgpzDKKLUi/M3iUfQpFGQN//aYkK8LK5AguTA=; b=NnGudFID+9jpcVwBmuVw2Nl3T7kMRc0phYOCCE/6PmsLi6NDgvC14uW2JJoRUoXpif 3lFY3g95bjiIlNx0DK5B+cHOcldqlRWMusSMvl/bTpmLadbkyS5Bq673Cr4Ukm93dLjm U90SyPxRMZFY1x4znCHesjVquDZdwCyLH1rIvRm7vY2M50TF8/1HdmrQxbad2bsLJITL YydlbJ6Pv39yKEvs5j3DpYFpz/sCGLVjlsusKzIfzemNcLJi2JLnmokS/nWTY6eF6JfU tREna+KkD6MgfpIxAb87L2HXpL1HuswvQYFeUdEp8+S2la1s2e5tpDdmYI2+3V/SnmR6 FnVw== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gv7-20020a17090b11c700b00247b1a05438si6463145pjb.16.2023.05.23.10.13.53; Tue, 23 May 2023 10:14:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237874AbjEWQ46 (ORCPT + 99 others); Tue, 23 May 2023 12:56:58 -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-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> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_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 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