diff options
author | Christoph Hellwig <hch@lst.de> | 2020-04-14 09:28:56 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-20 19:32:59 +0200 |
commit | 4377b48da6da44360cc76cd3e0562dbb47dd4904 (patch) | |
tree | 6472cda2d9707981de322949cb24e9ee522efce9 /block/blk.h | |
parent | block: cleanup hd_struct freeing (diff) | |
download | linux-4377b48da6da44360cc76cd3e0562dbb47dd4904.tar.xz linux-4377b48da6da44360cc76cd3e0562dbb47dd4904.zip |
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/blk.h')
-rw-r--r-- | block/blk.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/block/blk.h b/block/blk.h index b1a0b8cd87f0..204963bb03e8 100644 --- a/block/blk.h +++ b/block/blk.h @@ -413,11 +413,6 @@ static inline void hd_struct_put(struct hd_struct *part) 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) { free_part_stats(part); |