diff options
| author | Christoph Hellwig <[email protected]> | 2021-05-25 08:13:01 +0200 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-06-01 07:47:14 -0600 |
| commit | 0e0ccdecb3cff95a350b4364e7ebbaa754d0e47d (patch) | |
| tree | e824664c86b6b1dc7799c5fd007f1d5615cbc7f0 /include/linux | |
| parent | c97d93c31e5734a16bfe663085ec91b8c9fb20f9 (diff) | |
block: remove bdget_disk
Just opencode the xa_load in the callers, as none of them actually
needs a reference to the bdev.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/genhd.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 64a8431202b7..03d684f0498f 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -223,7 +223,6 @@ static inline void add_disk_no_queue_reg(struct gendisk *disk) } extern void del_gendisk(struct gendisk *gp); -extern struct block_device *bdget_disk(struct gendisk *disk, int partno); void set_disk_ro(struct gendisk *disk, bool read_only); |