]> www.infradead.org Git - users/hch/block.git/commitdiff
block: move blk_drop_partitions to blk.h
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Dec 2021 06:08:44 +0000 (07:08 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2022 09:12:24 +0000 (10:12 +0100)
No need to have this declaration in a public header.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk.h
include/linux/genhd.h

index 2cba50d7e6cb1fb7874748ed1d121b420894b792..800c5ae387a0bb769e0195a63fcaedecefd4c8e7 100644 (file)
@@ -426,6 +426,7 @@ int bdev_add_partition(struct gendisk *disk, int partno, sector_t start,
 int bdev_del_partition(struct gendisk *disk, int partno);
 int bdev_resize_partition(struct gendisk *disk, int partno, sector_t start,
                sector_t length);
+void blk_drop_partitions(struct gendisk *disk);
 
 int bio_add_hw_page(struct request_queue *q, struct bio *bio,
                struct page *page, unsigned int len, unsigned int offset,
index 504f9a6674acea0c31997f208e7c11c54e432f30..aa4bd985dbe516439ae95cb4515d760c5180acb2 100644 (file)
@@ -219,7 +219,6 @@ static inline u64 sb_bdev_nr_blocks(struct super_block *sb)
 }
 
 int bdev_disk_changed(struct gendisk *disk, bool invalidate);
-void blk_drop_partitions(struct gendisk *disk);
 
 struct gendisk *__alloc_disk_node(struct request_queue *q, int node_id,
                struct lock_class_key *lkclass);