]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
block: remove flush_disk
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Jul 2020 12:25:43 +0000 (14:25 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Jul 2020 22:20:01 +0000 (16:20 -0600)
commit9a3ffbbc6561ff878261727585ef8ee89bb36424
tree1a0551a01c6683b10b6291c76323c51a46c5619e
parent8c22eb3a77373c616f141b56f44ef225ee15c96b
block: remove flush_disk

flush_disk has only two callers, so open code it there.  That also helps
clarifying the error message for the particular case, and allows to remove
setting bd_invalidated in check_disk_size_change, which will be cleared
again instantly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c