]> git.baikalelectronics.ru Git - kernel.git/commit
block: cleanup the flush plug helpers
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Oct 2021 14:41:19 +0000 (16:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 15:56:11 +0000 (09:56 -0600)
commit1d1a15058144504a09918ddbf146522723e3f9f9
treef5e446c0d7e9024e7eb1be8e57fb842663f91c41
parent28c2745e3d53ef7c376604562f5b83f7f37a4f5c
block: cleanup the flush plug helpers

Consolidate the various helpers into a single blk_flush_plug helper that
takes a plk_plug and the from_scheduler bool and switch all callsites to
call it directly.  Checks that the plug is non-NULL must be performed by
the caller, something that most already do anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211020144119.142582-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
fs/fs-writeback.c
include/linux/blkdev.h
kernel/sched/core.c