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>
Showing
- block/genhd.c 1 addition, 1 deletionblock/genhd.c
- block/partitions/core.c 1 addition, 1 deletionblock/partitions/core.c
- fs/block_dev.c 6 additions, 3 deletionsfs/block_dev.c
- include/linux/blkdev.h 1 addition, 1 deletioninclude/linux/blkdev.h
- kernel/trace/blktrace.c 2 additions, 7 deletionskernel/trace/blktrace.c
Loading
Please register or sign in to comment