]> git.baikalelectronics.ru Git - kernel.git/commit
block: simplify submit_bio_checks a bit
authorChristoph Hellwig <hch@lst.de>
Sun, 24 Jan 2021 10:02:35 +0000 (11:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 01:17:20 +0000 (18:17 -0700)
commitc9c8986c5b1f872c10c712b1a3beb6b6b98b168e
tree5b086d1afdf5e08613d20c029d457bde85233df9
parent15f21b295a4d38e0e88d3ab3e6f3d1b4f669c49f
block: simplify submit_bio_checks a bit

Merge a few checks for whole devices vs partitions to streamline the
sanity checks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c