Christoph Hellwig 473338be3a block: move more syncing and invalidation to delete_partition
Move the calls to fsync_bdev and __invalidate_device from del_gendisk to
delete_partition.  For the other two callers that check that there are
no openers for the delete partitions(s) the callouts are a no-op as no
file system can be mounted, but this keeps all the cleanup in one
place.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210406062303.811835-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-04-08 10:24:36 -06:00
..
2021-02-21 11:02:48 -08:00
2020-09-03 15:20:47 -06:00
2020-03-17 20:55:21 +01:00
2021-02-22 10:53:05 -08:00
2020-05-29 16:30:39 -06:00
2020-09-23 09:18:13 -06:00
2020-01-06 20:59:04 -07:00