summaryrefslogtreecommitdiffstats
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 14:35:21 +0100
commite16e506ccd673a3a888a34f8f694698305840044 (patch)
treeccf5b29c0132bf9a83e01ce253a311dffb42a15c /block/blk.h
parentblock: remove a dead check in show_partition (diff)
downloadlinux-e16e506ccd673a3a888a34f8f694698305840044.tar.xz
linux-e16e506ccd673a3a888a34f8f694698305840044.zip
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);