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)
commit9346beb9d0ee3be5282bfcb9a33d974e62dd9b25
tree1115856c8a64082f87689569f70f01ad1ce91d04
parentd424681cc9ebaaeac2b6af842d2f497ba7ccf349
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