]> git.baikalelectronics.ru Git - kernel.git/commit
block: add a bdget_part helper
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Sep 2020 16:06:18 +0000 (18:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Oct 2020 16:38:33 +0000 (10:38 -0600)
commit0f388efe8a4ff8baeb4646e54881ff8feae5e518
tree18e9b39f3f6eb5528a33567258782a20c96384c0
parentf7595a3162c4d780c71a17aa5fbcabd540f64ac1
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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
block/partitions/core.c
fs/block_dev.c
include/linux/blkdev.h
kernel/trace/blktrace.c