diff options
author | Christoph Hellwig <hch@lst.de> | 2020-04-14 09:28:54 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-20 11:32:59 -0600 |
commit | cddae808aeb77e5c29d22a8e0dfbdaed413f9e04 (patch) | |
tree | cca16ea68b8e11226b5def4cac2d49f5e565af70 /block/blk.h | |
parent | fa9156ae597c244df4e12891dc8329f649970d9a (diff) | |
download | linux-cddae808aeb77e5c29d22a8e0dfbdaed413f9e04.tar.gz linux-cddae808aeb77e5c29d22a8e0dfbdaed413f9e04.tar.bz2 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/blk.h')
-rw-r--r-- | block/blk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk.h b/block/blk.h index 305e0ac22bf7..0cbf64108922 100644 --- a/block/blk.h +++ b/block/blk.h @@ -390,7 +390,7 @@ char *disk_name(struct gendisk *hd, int partno, char *buf); #define ADDPART_FLAG_RAID 1 #define ADDPART_FLAG_WHOLEDISK 2 void __delete_partition(struct percpu_ref *ref); -void delete_partition(struct gendisk *disk, int partno); +void delete_partition(struct gendisk *disk, 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); |