summaryrefslogtreecommitdiff
path: root/block/blk.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-08-31 20:02:38 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-01 19:38:25 -0600
commit8328eb28369a7dbfab6ff26366dbe8094425acc4 (patch)
treeceb69fab0917d83089c0bb53acb1921009cc6be3 /block/blk.h
parentf93af2a494e1d28377065a2320d11da98110a970 (diff)
block: remove the disk argument to delete_partition
We can trivially derive the gendisk from the hd_struct. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk.h b/block/blk.h
index a180443ac13f..c08762e10b04 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -361,7 +361,7 @@ char *disk_name(struct gendisk *hd, int partno, char *buf);
#define ADDPART_FLAG_NONE 0
#define ADDPART_FLAG_RAID 1
#define ADDPART_FLAG_WHOLEDISK 2
-void delete_partition(struct gendisk *disk, struct hd_struct *part);
+void delete_partition(struct hd_struct *part);
int bdev_add_partition(struct block_device *bdev, int partno,
sector_t start, sector_t length);
int bdev_del_partition(struct block_device *bdev, int partno);