Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5338638rwd; Tue, 23 May 2023 23:39:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4oEW07BgJYy0zZvscmqmQ7PoE6aHXN+wPhCnTWB726skAIL1hN5LJamLDkze5W0icm0Tpu X-Received: by 2002:a05:6a20:a590:b0:102:5e06:1544 with SMTP id bc16-20020a056a20a59000b001025e061544mr14552993pzb.30.1684910391235; Tue, 23 May 2023 23:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684910391; cv=none; d=google.com; s=arc-20160816; b=wBxRmxgVuAsMyUXFvwjXqtBhOYZgWCBWo3BC0YPoAKweoTV3E9V7MObNjYrmhwudZ6 /UbUllJDYp42DmFQUr5EzGAF7qNlCLXh4ncFYemNs/1kR12HGTW91JmF7bH8+d0Ybhwv gNi7s/hk/y6AZgCAKVG64J3bicBLRI38xmhRuMb4S+S0V+YNBmspbat77HRcc8t/FNaw 1YGNS86C+r4cLCOQrPioJTvmuQgW+o13Rc2rjRU/rTqnL8NONfOxOBUXdEusRyEx+Ahn uI1Qp5NSDU1HyTV8XQ2h/de5ZL7D/XLKfJ/8EAdBujAWhfrr7xsiSL/Rg4JHiMbtov9B nVYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ScgTHL8cnksTVoCu0/vc0J4ArxiL/bSD+poqfgQHZhs=; b=qZOLGZWdl5kSbVYyEJgQUBEZEdTi68Nh8A3NAdjS5UK8IVPjmtMT59Ee9Ji9/a9JX6 eWKWf8rmouFlrbysPaEGsKPtvUF9IEigK+DhoqamVVhEK92DfnApGyH+ZY7buxAFWzX6 yn0N3K8mk78dalbg2+pDsFnvV/O/Lr0FfzUGYKLAs2JHrnafMaXNbogGQ0UTqhs+RncC zWkytj42oTAzBvfDixN/cfXd1g2YQtzRapOglo+l1cMS25dt7ek9eNQ9Sbr5W4IZEnc0 pH1nXPccyZqFjZM8wPNPQI9QeNtSVQxWSzgH/9+p7FNapvYiAo0URItQMeePWMA0li5L Qe2A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y62-20020a638a41000000b0053eef685a0csi2237900pgd.852.2023.05.23.23.39.39; Tue, 23 May 2023 23:39:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239606AbjEXGHG (ORCPT + 99 others); Wed, 24 May 2023 02:07:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231232AbjEXGHF (ORCPT ); Wed, 24 May 2023 02:07:05 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3083A132; Tue, 23 May 2023 23:07:04 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id BB12668CFE; Wed, 24 May 2023 08:06:59 +0200 (CEST) Date: Wed, 24 May 2023 08:06:59 +0200 From: Christoph Hellwig To: Mike Snitzer Cc: Christoph Hellwig , 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 19/24] dm: remove dm_get_dev_t Message-ID: <20230524060659.GB19611@lst.de> References: <20230523074535.249802-1-hch@lst.de> <20230523074535.249802-20-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 12:49:16PM -0400, Mike Snitzer wrote: > > - dev = dm_get_dev_t(path); > > - if (!dev) > > + r = lookup_bdev(path, &dev); > > + if (r) > > + r = early_lookup_bdev(path, &dev); > > + if (r) > > return -ENODEV; > > } > > if (dev == disk_devt(t->md->disk)) > > OK, but you aren't actually propagating the exact error code. Did > you intend to change the return from -ENODEV to r? Yes, thanks.