diff options
author | Christoph Hellwig <hch@lst.de> | 2020-04-14 09:28:54 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-20 19:32:59 +0200 |
commit | cddae808aeb77e5c29d22a8e0dfbdaed413f9e04 (patch) | |
tree | cca16ea68b8e11226b5def4cac2d49f5e565af70 /block/genhd.c | |
parent | block: refactor blkpg_ioctl (diff) | |
download | linux-cddae808aeb77e5c29d22a8e0dfbdaed413f9e04.tar.xz linux-cddae808aeb77e5c29d22a8e0dfbdaed413f9e04.zip |
block: pass a hd_struct to delete_partition
All callers have the hd_struct at hand, so pass it instead of performing
another lookup.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/genhd.c')
-rw-r--r-- | block/genhd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c index 06b642b23a07..1cc50ad5b191 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -897,7 +897,7 @@ void del_gendisk(struct gendisk *disk) while ((part = disk_part_iter_next(&piter))) { invalidate_partition(disk, part->partno); bdev_unhash_inode(part_devt(part)); - delete_partition(disk, part->partno); + delete_partition(disk, part); } disk_part_iter_exit(&piter); |