diff options
Diffstat (limited to 'drivers/block/rsxx/dma.c')
-rw-r--r-- | drivers/block/rsxx/dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/rsxx/dma.c b/drivers/block/rsxx/dma.c index fc88ba3e1bd2..3716633be3c2 100644 --- a/drivers/block/rsxx/dma.c +++ b/drivers/block/rsxx/dma.c | |||
@@ -696,7 +696,7 @@ int rsxx_dma_queue_bio(struct rsxx_cardinfo *card, | |||
696 | int st; | 696 | int st; |
697 | int i; | 697 | int i; |
698 | 698 | ||
699 | addr8 = bio->bi_sector << 9; /* sectors are 512 bytes */ | 699 | addr8 = bio->bi_iter.bi_sector << 9; /* sectors are 512 bytes */ |
700 | atomic_set(n_dmas, 0); | 700 | atomic_set(n_dmas, 0); |
701 | 701 | ||
702 | for (i = 0; i < card->n_targets; i++) { | 702 | for (i = 0; i < card->n_targets; i++) { |
@@ -705,7 +705,7 @@ int rsxx_dma_queue_bio(struct rsxx_cardinfo *card, | |||
705 | } | 705 | } |
706 | 706 | ||
707 | if (bio->bi_rw & REQ_DISCARD) { | 707 | if (bio->bi_rw & REQ_DISCARD) { |
708 | bv_len = bio->bi_size; | 708 | bv_len = bio->bi_iter.bi_size; |
709 | 709 | ||
710 | while (bv_len > 0) { | 710 | while (bv_len > 0) { |
711 | tgt = rsxx_get_dma_tgt(card, addr8); | 711 | tgt = rsxx_get_dma_tgt(card, addr8); |