block: refactor to use helper
authorNitesh Shetty <nj.shetty@samsung.com>
Wed, 19 Jul 2023 12:16:08 +0000 (17:46 +0530)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jul 2023 22:27:52 +0000 (16:27 -0600)
commit8f63fef5867fb5e8c29d9c14b6d739bfc1869d32
treeb5fa3e974fcae14ce6bba2bb3035413e7b493c3f
parent81ada09cc25e4bf2de7d2951925fb409338a545d
block: refactor to use helper

Reduce some code by making use of bio_integrity_bytes().

Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20230719121608.32105-1-nj.shetty@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c