block: remove invalidate_partition
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Apr 2021 06:22:53 +0000 (08:22 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Apr 2021 16:24:36 +0000 (10:24 -0600)
commit45611837bb37e4544ca048e33d833483b06e3b03
treeeeb9c5d97e842aec1d7c9097cbe75b18f5a1db40
parentb896fa85e0ee4f09ba4be48a3f405fc82c38afb4
block: remove invalidate_partition

invalidate_partition has two callers, one of which already performs
the remove_inode_hash just after the call.  Just open code the
function in the two callsites.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210406062303.811835-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c