summaryrefslogtreecommitdiff
path: root/block/blk.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-11-22 14:06:16 +0100
committerJens Axboe <axboe@kernel.dk>2021-11-29 06:35:21 -0700
commite16e506ccd673a3a888a34f8f694698305840044 (patch)
treeccf5b29c0132bf9a83e01ce253a311dffb42a15c /block/blk.h
parente3b3bad3f29878d13fdbc96f9e59674bd9b06bae (diff)
block: merge disk_scan_partitions and blkdev_reread_part
Unify the functionality that implements a partition rescan for a gendisk. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20211122130625.1136848-6-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk.h b/block/blk.h
index 31ac75413287..423cba8ea0a6 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -449,6 +449,7 @@ int bio_add_hw_page(struct request_queue *q, struct bio *bio,
unsigned int max_sectors, bool *same_page);
struct request_queue *blk_alloc_queue(int node_id);
+int disk_scan_partitions(struct gendisk *disk, fmode_t mode);
int disk_alloc_events(struct gendisk *disk);
void disk_add_events(struct gendisk *disk);