Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30652135rwd; Thu, 6 Jul 2023 08:49:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlF7n+UX1PI8av5rd4Tw3qZ+/2FKtJs2DaA7gHAk+AOn3w1udbJ8h3orwH9uVCHfvhA3u7IK X-Received: by 2002:a05:6a00:23d3:b0:67f:6226:58ac with SMTP id g19-20020a056a0023d300b0067f622658acmr1895166pfc.14.1688658542708; Thu, 06 Jul 2023 08:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688658542; cv=none; d=google.com; s=arc-20160816; b=TMQYErdJTtM/I2vVO4FqHKLAbdZp7t3jbfNC+67KGWMTWbeyMJd8PeHDfI7JSrKAub 0amklhwhLlPMOO22nEBm4KmdYaHGogLKbHzMR+4A2C8cYLZ9NRwHLt0F2+9n6LacM85P LQQxg4Bkq2pwsuWyZAwib8ySPw78cxP5/sOOX7nBLK6NWwmG0JKj5cAMIj3X0nkckxpF +N4KmCOGsvy95T8FwAP7wTp5VtHTwdSY6RfDeGAONepkF2+Owiclvcia1XJm9ybCSfO0 j/GAUZjqUi5ZN4eAEOldD14IQWMEbjV+PD0y+qdGOy5WMDgzzUrMjgFBNidH2SYJUZHV E44g== 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:dkim-signature; bh=YwAEpZO7Vu5hoax5tz5QpnX5k8pjtsK6yDO/dOzPntw=; fh=59T+jdfU8nEXEZGL5okA0pJR2/fb+G4dXhrbQLQ3nIg=; b=DLdESiFdpNMYSC4tPqa2Nu+UHRYipBf/2fNJ6VidqsZ+J9mkVNmT29ERmkmng/+4yJ sGD68oHO6LLG+Db88KC6jQggM137gHFnQXZPLo3EHmpNjwf67nBSCPEr/7kv2lb9USA8 jeZ28LdvPRN5XbDIX/cCjG8pO99Pxq79N4P6o0CDm+VkAIBZZ8fQ3iSFyBJrSDJa1n0b aEZxprNNS18f6VeXL9k8Hya8lMeBQ17hNwqGv1dgsiVyED3VotrP/XXOUEoGj5fxWy14 jmM5/194kRsqHMy80O0Gq0ytIdwZN6adyKz+XVgf7NpFzM4yNohnqeEkdV0M1tJfa1fO vVFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=LJt1aHPp; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 d12-20020a056a00198c00b00677429ef6a2si1650590pfl.186.2023.07.06.08.48.46; Thu, 06 Jul 2023 08:49:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=LJt1aHPp; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233790AbjGFPiu (ORCPT + 99 others); Thu, 6 Jul 2023 11:38:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233200AbjGFPiq (ORCPT ); Thu, 6 Jul 2023 11:38:46 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 400D11BC2; Thu, 6 Jul 2023 08:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=YwAEpZO7Vu5hoax5tz5QpnX5k8pjtsK6yDO/dOzPntw=; b=LJt1aHPpR1VtNNU97F662mFcBQ 04pv5pjmhELPxcfY8IU2J9oyhfgQvItd1fUo/P+Wom3ADKBICTxeaU2ubravoUlJ9bJKThqcbtmZO YHZ6Bq5JNF5Oy1kZk0vGrojv9a9LNU4bL+WXTD5k/gljEqzdXg69aNBObe/lnHCHtRlMc6Ppc7Hqe +NefvxaKjDH4eBZ/aYpgK8N4uyEQGVFSG36iqC/zjMjHjPuCdtgFFvp4F+STCUxI3HsTMMx8Jecfh X5dQPxytEjbEWkMaTy11b/rkROV7wOirXDfTif06nI996QOXUgedgb0owSphnlvJb3u4X61SBTklq DymCsIxA==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qHR44-0021w3-0C; Thu, 06 Jul 2023 15:38:40 +0000 Date: Thu, 6 Jul 2023 08:38:40 -0700 From: Christoph Hellwig To: Jan Kara Cc: linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jens Axboe , Christoph Hellwig , Alasdair Kergon , Andrew Morton , Anna Schumaker , Chao Yu , Christian Borntraeger , "Darrick J. Wong" , Dave Kleikamp , David Sterba , dm-devel@redhat.com, drbd-dev@lists.linbit.com, Gao Xiang , Jack Wang , Jaegeuk Kim , jfs-discussion@lists.sourceforge.net, Joern Engel , Joseph Qi , Kent Overstreet , linux-bcache@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mm@kvack.org, linux-mtd@lists.infradead.org, linux-nfs@vger.kernel.org, linux-nilfs@vger.kernel.org, linux-nvme@lists.infradead.org, linux-pm@vger.kernel.org, linux-raid@vger.kernel.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, linux-xfs@vger.kernel.org, "Md. Haris Iqbal" , Mike Snitzer , Minchan Kim , ocfs2-devel@oss.oracle.com, reiserfs-devel@vger.kernel.org, Sergey Senozhatsky , Song Liu , Sven Schnelle , target-devel@vger.kernel.org, Ted Tso , Trond Myklebust , xen-devel@lists.xenproject.org Subject: Re: [PATCH 01/32] block: Provide blkdev_get_handle_* functions Message-ID: References: <20230629165206.383-1-jack@suse.cz> <20230704122224.16257-1-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230704122224.16257-1-jack@suse.cz> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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-ext4@vger.kernel.org On Tue, Jul 04, 2023 at 02:21:28PM +0200, Jan Kara wrote: > Create struct bdev_handle that contains all parameters that need to be > passed to blkdev_put() and provide blkdev_get_handle_* functions that > return this structure instead of plain bdev pointer. This will > eventually allow us to pass one more argument to blkdev_put() without > too much hassle. Can we use the opportunity to come up with better names? blkdev_get_* was always a rather horrible naming convention for something that ends up calling into ->open. What about: struct bdev_handle *bdev_open_by_dev(dev_t dev, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops); struct bdev_handle *bdev_open_by_path(dev_t dev, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops); void bdev_release(struct bdev_handle *handle); ?