block: simplify the block device syncing code
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Oct 2021 06:25:30 +0000 (08:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:38:50 +0000 (14:38 +0200)
commit6eb927ee189f39746bcb02123d270ef04457eab6
tree3d42199f152bf2f8c88ad8bab796bd9b54a639ee
parent7877e7a5a52e1c9716326b94dfe6c7e6cd7bce5a
block: simplify the block device syncing code

[ Upstream commit 1e03a36bdff4709c1bbf0f57f60ae3f776d51adf ]

Get rid of the indirections and just provide a sync_bdevs
helper for the generic sync code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211019062530.2174626-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/bdev.c
fs/internal.h
fs/sync.c
include/linux/blkdev.h