]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3d7a37b903435b2826d0b4aecd3f583310df2ff
tree47905396b491e167950ec5c95d1d2bdeb3c72e6e
parent12ba1f275b445254c79cc61ab24d99636786b63d
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