|
@@ -1376,7 +1376,7 @@ static int dm_integrity_map(struct dm_target *ti, struct bio *bio)
|
|
|
struct bvec_iter iter;
|
|
|
struct bio_vec bv;
|
|
|
bio_for_each_segment(bv, bio, iter) {
|
|
|
- if (unlikely((bv.bv_offset | bv.bv_len) & ((ic->sectors_per_block << SECTOR_SHIFT) - 1))) {
|
|
|
+ if (unlikely(bv.bv_len & ((ic->sectors_per_block << SECTOR_SHIFT) - 1))) {
|
|
|
DMERR("Bio vector (%u,%u) is not aligned on %u-sector boundary",
|
|
|
bv.bv_offset, bv.bv_len, ic->sectors_per_block);
|
|
|
return DM_MAPIO_KILL;
|