]> git.baikalelectronics.ru Git - kernel.git/commit
block: fold bdev_unhash_inode into invalidate_partition
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Apr 2020 07:29:02 +0000 (09:29 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Apr 2020 17:33:00 +0000 (11:33 -0600)
commitacadc650a1189cb2f20ea3eed4705ce40fdb7e1a
tree2181eea4b9dcafc856d56d7b70e133ef8a353f4a
parentfd69b400a3ff712bb58cd70639897c03d15a68ee
block: fold bdev_unhash_inode into invalidate_partition

invalidate_partition and bdev_unhash_inode are always paired, and
invalidate_partition already does an icache lookup for the block device
inode.  Piggy back on that to remove the inode from the hash.

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/genhd.c
fs/block_dev.c
include/linux/fs.h