OSDN Git Service

block: remove (__)blkdev_reread_part as an exported API
authorChristoph Hellwig <hch@lst.de>
Thu, 14 Nov 2019 14:34:36 +0000 (15:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Nov 2019 14:43:59 +0000 (07:43 -0700)
commitf0b870df80bc70dad432fd0c142bb709a49964f5
treea937171d443f52ec38b6cf3cc6b602a2a6be09fc
parent142fe8f4bb169e8632024d51c64653a8bf140561
block: remove (__)blkdev_reread_part as an exported API

In general drivers should never mess with partition tables directly.
Unfortunately s390 and loop do for somewhat historic reasons, but they
can use bdev_disk_changed directly instead when we export it as they
satisfy the sanity checks we have in __blkdev_reread_part.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com> [dasd]
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/ioctl.c
drivers/block/loop.c
drivers/s390/block/dasd_genhd.c
fs/block_dev.c
include/linux/fs.h