block: pass a hd_struct to delete_partition
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Apr 2020 07:28:54 +0000 (09:28 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Apr 2020 17:32:59 +0000 (11:32 -0600)
commitcddae808aeb77e5c29d22a8e0dfbdaed413f9e04
treecca16ea68b8e11226b5def4cac2d49f5e565af70
parentfa9156ae597c244df4e12891dc8329f649970d9a
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>
block/blk.h
block/genhd.c
block/partitions/core.c