Commit 4377b48d authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

block: remove hd_struct_kill

The function has a single caller, so just open code it.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 8da2892e
...@@ -413,11 +413,6 @@ static inline void hd_struct_put(struct hd_struct *part) ...@@ -413,11 +413,6 @@ static inline void hd_struct_put(struct hd_struct *part)
percpu_ref_put(&part->ref); percpu_ref_put(&part->ref);
} }
static inline void hd_struct_kill(struct hd_struct *part)
{
percpu_ref_kill(&part->ref);
}
static inline void hd_free_part(struct hd_struct *part) static inline void hd_free_part(struct hd_struct *part)
{ {
free_part_stats(part); free_part_stats(part);
......
...@@ -321,7 +321,7 @@ void delete_partition(struct gendisk *disk, struct hd_struct *part) ...@@ -321,7 +321,7 @@ void delete_partition(struct gendisk *disk, struct hd_struct *part)
* "in-use" until we really free the gendisk. * "in-use" until we really free the gendisk.
*/ */
blk_invalidate_devt(part_devt(part)); blk_invalidate_devt(part_devt(part));
hd_struct_kill(part); percpu_ref_kill(&part->ref);
} }
static ssize_t whole_disk_show(struct device *dev, static ssize_t whole_disk_show(struct device *dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment