lkml.org 
[lkml]   [2020]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: remove blkdev_get as a public API v2
From
Date
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

\
 
 \ /
  Last update: 2020-09-23 18:44    [W:0.104 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site