block: cleanup hd_struct freeing
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Apr 2020 07:28:55 +0000 (09:28 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Apr 2020 17:32:59 +0000 (11:32 -0600)
commit8da2892e27833c5ee78788a66941e0e96eedad22
treedfb5eb341b7a1f9a717c1db754ec54ae1c9fa208
parentcddae808aeb77e5c29d22a8e0dfbdaed413f9e04
block: cleanup hd_struct freeing

Move hd_ref_init out of line as there it isn't anywhere near a fast path,
and rename the rcu ref freeing callbacks to be more descriptive.

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/partitions/core.c