block: check that there is a plug in blk_flush_plug
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Jan 2022 07:05:49 +0000 (08:05 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Feb 2022 14:50:00 +0000 (07:50 -0700)
commitaa8dcccaf32bfdc09f2aff089d5d60c37da5b7b5
tree47905396b491e167950ec5c95d1d2bdeb3c72e6e
parentb1f866b013e6e5583f2f0bf4a61d13eddb9a1799
block: check that there is a plug in blk_flush_plug

Rename blk_flush_plug to __blk_flush_plug and add a wrapper that includes
the NULL check instead of open coding that check everywhere.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220127070549.1377856-2-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