]> git.baikalelectronics.ru Git - kernel.git/commit
bio-integrity: move the bio integrity profile check earlier in bio_integrity_prep
authorChristoph Hellwig <hch@lst.de>
Wed, 9 Aug 2017 15:48:08 +0000 (17:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Aug 2017 16:00:29 +0000 (10:00 -0600)
commit29862d5e4a2cfb354a011222a5dd66c9f39e3873
tree1115856c8a64082f87689569f70f01ad1ce91d04
parent2c3066d1066a2f71d368a4bbedda77d920b94740
bio-integrity: move the bio integrity profile check earlier in bio_integrity_prep

This makes the code more obvious, and moves the most likely branch first
in the function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c