History

block: remove the disk argument from blk_drop_partitions

The gendisk can be trivially deducted from the block_device.

Christoph Hellwig committed 6 years ago

Commit d46430b1 parent 4377b483 files · +7 −7Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/genhd.h+1−1
@@ -339,7 +339,7 @@ extern dev_t blk_lookup_devt(const char *name, int partno); · 338 unmodified lines
339 339
340int bdev_disk_changed(struct block_device *bdev, bool invalidate);340int bdev_disk_changed(struct block_device *bdev, bool invalidate);
341int blk_add_partitions(struct gendisk *disk, struct block_device *bdev);341int blk_add_partitions(struct gendisk *disk, struct block_device *bdev);
342int blk_drop_partitions(struct gendisk *disk, struct block_device *bdev);342int blk_drop_partitions(struct block_device *bdev);
343extern void printk_all_partitions(void);343extern void printk_all_partitions(void);
344 344
345extern struct gendisk *__alloc_disk_node(int minors, int node_id);345extern struct gendisk *__alloc_disk_node(int minors, int node_id);