block: free the extended dev_t minor later
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 12:26:13 +0000 (14:26 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Aug 2021 16:49:11 +0000 (10:49 -0600)
commit9451aa0aacaf7ea13d1acfd5de8b63a6e0b24fac
tree74a5ba1e8f56d7c3fa9ab5c69308919451699ef3
parent4f1e9630afe6332de7286820fedd019f19eac057
block: free the extended dev_t minor later

The dev_t is used as the inode hash, so we should only released it
once then block device inode is gone from the inode cache.  Move it
to bdev_free_inode to ensure that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210816122614.601358-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
block/partitions/core.c
fs/block_dev.c