From: Jens Axboe Date: Wed, 23 Sep 2020 10:43:57 -0600 Subject: [Ocfs2-devel] remove blkdev_get as a public API v2 In-Reply-To: <20200921071958.307589-1-hch@lst.de> References: <20200921071958.307589-1-hch@lst.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Christoph Hellwig Cc: Josef Bacik , Minchan Kim , Stefan Haberland , Jan Hoeppner , Joseph Qi , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Andrew Morton , linux-kernel@vger.kernel.org, nbd@other.debian.org, linux-ide@vger.kernel.org, linux-s390@vger.kernel.org, linux-fsdevel@vger.kernel.org, ocfs2-devel@oss.oracle.com, linux-pm@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org On 9/21/20 1:19 AM, Christoph Hellwig wrote: > Hi Jens, > > this series removes blkdev_get as a public API, leaving it as just an > implementation detail of blkdev_get_by_path and blkdev_get_by_dev. The > reason for that is that blkdev_get is a very confusing API that requires > a struct block_device to be fed in, but then actually consumes the > reference. And it turns out just using the two above mentioned APIs > actually significantly simplifies the code as well. > > Changes since v1: > - fix a mismerged that left a stray bdget_disk around > - factour the partition scan at registration time code into a new > helper. Applied for 5.10, thanks. -- Jens Axboe