diff options
author | Jinyoung Choi <[email protected]> | 2023-08-03 11:50:58 +0900 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-08-09 16:05:35 -0600 |
commit | d1f04c2e23c99258049c6081c3147bae69e5bcb8 (patch) | |
tree | e1c7cb00a9dcfab06a1cc1d04ee62d27ca153ca9 /tools/testing | |
parent | 80814b8e359f7207595f52702aea432a7bd61200 (diff) |
bio-integrity: cleanup adding integrity pages to bip's bvec.
bio_integrity_add_page() returns the add length if successful, else 0,
just as bio_add_page. Simply check return value checking in
bio_integrity_prep to not deal with a > 0 but < len case that can't
happen.
Cc: Christoph Hellwig <[email protected]>
Cc: Martin K. Petersen <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jinyoung Choi <[email protected]>
Tested-by: "Martin K. Petersen" <[email protected]>
Reviewed-by: "Martin K. Petersen" <[email protected]>
Link: https://lore.kernel.org/r/20230803025058epcms2p5a4d0db5da2ad967668932d463661c633@epcms2p5
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions