summaryrefslogtreecommitdiff
path: root/block/genhd.c
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/genhd.c
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/genhd.c')
-rw-r--r--block/genhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c
index 055ce9cf1835..2055b5bf637a 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -913,7 +913,7 @@ void del_gendisk(struct gendisk *disk)
DISK_PITER_INCL_EMPTY | DISK_PITER_REVERSE);
while ((part = disk_part_iter_next(&piter))) {
invalidate_partition(disk, part->partno);
- delete_partition(disk, part);
+ delete_partition(part);
}
disk_part_iter_exit(&piter);