diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2014-09-26 19:20:04 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-27 11:14:54 -0400 |
commit | b1f01388574c9329922f760fc2a7335c2d14b08b (patch) | |
tree | e7c3715508c780745026678266c9e7718fa0be32 /drivers/scsi/sd_dif.c | |
parent | 3aec2f41a8baeb70aa77556a4e4dcec7d9d70b4d (diff) |
block: Relocate bio integrity flags
Move flags affecting the integrity code out of the bio bi_flags and into
the block integrity payload.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/scsi/sd_dif.c')
-rw-r--r-- | drivers/scsi/sd_dif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/sd_dif.c b/drivers/scsi/sd_dif.c index 1e971c6f8c2b..4ce636fdc15f 100644 --- a/drivers/scsi/sd_dif.c +++ b/drivers/scsi/sd_dif.c | |||
@@ -326,7 +326,7 @@ void sd_dif_prepare(struct request *rq, sector_t hw_sector, | |||
326 | unsigned int j; | 326 | unsigned int j; |
327 | 327 | ||
328 | /* Already remapped? */ | 328 | /* Already remapped? */ |
329 | if (bio_flagged(bio, BIO_MAPPED_INTEGRITY)) | 329 | if (bip->bip_flags & BIP_MAPPED_INTEGRITY) |
330 | break; | 330 | break; |
331 | 331 | ||
332 | virt = bip_get_seed(bip) & 0xffffffff; | 332 | virt = bip_get_seed(bip) & 0xffffffff; |
@@ -347,7 +347,7 @@ void sd_dif_prepare(struct request *rq, sector_t hw_sector, | |||
347 | kunmap_atomic(sdt); | 347 | kunmap_atomic(sdt); |
348 | } | 348 | } |
349 | 349 | ||
350 | bio->bi_flags |= (1 << BIO_MAPPED_INTEGRITY); | 350 | bip->bip_flags |= BIP_MAPPED_INTEGRITY; |
351 | } | 351 | } |
352 | } | 352 | } |
353 | 353 | ||