]> www.infradead.org Git - users/hch/block.git/commit
block: add a bdget_part helper bdget
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Sep 2020 18:33:40 +0000 (20:33 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 23 Sep 2020 18:34:40 +0000 (20:34 +0200)
commitde1e99a793e22d6e9f0a10e54c27ceb66ae4a9ee
tree5fde889874123425fe346d525c607a2296262c0f
parentb6a6c8e1649ab3a59a309f872fb7bd80ca5ae785
block: add a bdget_part helper

All remaining callers of bdget() outside of fs/block_dev.c want to get a
reference to the struct block_device for a given struct hd_struct.  Add
a helper just for that and then mark bdget static.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/genhd.c
block/partitions/core.c
fs/block_dev.c
include/linux/blkdev.h
kernel/trace/blktrace.c