summaryrefslogtreecommitdiffstats
path: root/block/partitions
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-04-14 09:28:56 +0200
committerJens Axboe <axboe@kernel.dk>2020-04-20 11:32:59 -0600
commit4377b48da6da44360cc76cd3e0562dbb47dd4904 (patch)
tree6472cda2d9707981de322949cb24e9ee522efce9 /block/partitions
parent8da2892e27833c5ee78788a66941e0e96eedad22 (diff)
downloadlinux-4377b48da6da44360cc76cd3e0562dbb47dd4904.tar.bz2
block: remove hd_struct_kill
The function has a single caller, so just open code it. 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/partitions')
-rw-r--r--block/partitions/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/partitions/core.c b/block/partitions/core.c
index c5b47627210a..7d062599aa33 100644
--- a/block/partitions/core.c
+++ b/block/partitions/core.c
@@ -321,7 +321,7 @@ void delete_partition(struct gendisk *disk, struct hd_struct *part)
* "in-use" until we really free the gendisk.
*/
blk_invalidate_devt(part_devt(part));
- hd_struct_kill(part);
+ percpu_ref_kill(&part->ref);
}
static ssize_t whole_disk_show(struct device *dev,