]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc74e398cfe3b06886e3a0aa6561d4360c94d0b7
treecca16ea68b8e11226b5def4cac2d49f5e565af70
parent4b5975b6e8c03298e923a1bf35007853ab7e50be
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