Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1823132pxb; Mon, 23 Aug 2021 05:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1SsHq9ZG8i4MY0kztf8PzmEraeb7NU/86B6t4/RZgYREbvral40GtyOu+RTHAaAoG02la X-Received: by 2002:a5e:d80e:: with SMTP id l14mr26635184iok.79.1629722375796; Mon, 23 Aug 2021 05:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629722375; cv=none; d=google.com; s=arc-20160816; b=JJar5a/Y3kO4GcZupLTxML8WwvXEzW1cLdZQ9rxkcaxrn60JELe3FCnyIF/rrZMOc2 2eE8HopPNORM7fPmcDqMy4uHKDYeENOHIsUcJ2CjvsM2XURVosyHXwhQYo6X5hTTAKcq gk6kE2D9kzAR6hqVH4/5nJpBnH9koaQZc8iJ70yC1BHvdjAtF8D4ztoI0ysbmw2Gb455 wL3OQBI38g5PZrx4oXZkjVfW8nh0foyNw5CwoRvoEoHXFl4ldKlvEmFLYA3cEAu9w0kD YXcmIJ1pd+ehPGgCxy++qqbbgdlzNCoUdn+H6ijoC05IlWEj9S4/A7UogvYouubz/P/d pXNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xg5OmsoeQHl0C0xvc3OpoA+4OGNwVNPbjgeIqfQrN10=; b=vWvljdIxu0qHYWH3giY5Dk+re4vGxChICyKxPxFAeUMATLmjyx0aIoC7XpiBc7wNqX ow7GxjqRhv+Voe2DxV1L6MkI15Y7wmno0CWxo6VO4d9RSViu2ogNyBMJw999quJ8DhMU 1bmg6ibBSYxE16EpNHCOkBytMzM/YqB7/zmU8d1OmJNX1lVg382+vOePLHDHxfsZBM6U LKA34dDUr/Si1DHpXl70/dwUe8Low1pYGYh0JFBrDjlAc4eQBVwEv2dvPjDcrBpX1f42 na1Hh3u3GsYpAhqcx6ts7A7sc5ijcvMljhPgx4NK7omHSZxL8uFB5lHvouOYL0rfDNQA maQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=I3oOCZz6; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si2115652iot.57.2021.08.23.05.39.23; Mon, 23 Aug 2021 05:39:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=I3oOCZz6; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235981AbhHWMj7 (ORCPT + 99 others); Mon, 23 Aug 2021 08:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231476AbhHWMjz (ORCPT ); Mon, 23 Aug 2021 08:39:55 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00CE3C061575; Mon, 23 Aug 2021 05:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=xg5OmsoeQHl0C0xvc3OpoA+4OGNwVNPbjgeIqfQrN10=; b=I3oOCZz6PJ4VfMKrLxQ6YSJ6vt 1KrjioZ599LLasOm8Cq1/Z2z94LD9RybnhG2oxgposyMo6uTO17CXf3l2yAQRGNzEGkIShZTNsA67 29GlFapLqspbRCvEyEKmhsRwwSRAKg+eT1KpmKxSJKl4tHBbSvjYfrSXJVeQSGMrmlz2pYmHSYKUM imI+214+O1ehqMoACL+8/FBDjIdCPp1HbImf+B6ij8vsJ7PUNfpDrvFiLvlug8kNKKEsth0gIfv5z C8XNtolek3RA8EEa02iaaqsH8gRhDn0aE7tP7Fs17raxeFHuYlmI8DQvMnyglL95Eup3u57SQZcru d1v43eKg==; Received: from [2001:4bb8:193:fd10:c6e8:3c08:6f8b:cbf0] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mI9CE-009j6D-Vw; Mon, 23 Aug 2021 12:37:09 +0000 From: Christoph Hellwig To: Dan Williams , Vishal Verma , Dave Jiang Cc: Mike Snitzer , Matthew Wilcox , linux-xfs@vger.kernel.org, nvdimm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: [PATCH 3/9] dm: use fs_dax_get_by_bdev instead of dax_get_by_host Date: Mon, 23 Aug 2021 14:35:10 +0200 Message-Id: <20210823123516.969486-4-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210823123516.969486-1-hch@lst.de> References: <20210823123516.969486-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org There is no point in trying to finding the dax device if the DAX flag is not set on the queue as none of the users of the device mapper exported block devices could make use of the DAX capability. Signed-off-by: Christoph Hellwig --- drivers/md/dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 2c5f9e585211..465714341300 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -650,7 +650,7 @@ static int open_table_device(struct table_device *td, dev_t dev, } td->dm_dev.bdev = bdev; - td->dm_dev.dax_dev = dax_get_by_host(bdev->bd_disk->disk_name); + td->dm_dev.dax_dev = fs_dax_get_by_bdev(bdev); return 0; } -- 2.30.2