ide: cleanup rq->data_len usages
With recent unification of fields, it's now guaranteed that rq->data_len always equals blk_rq_bytes(). Convert all direct users to accessors. [ Impact: convert direct rq->data_len usages to blk_rq_bytes() ] Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Cc: Borislav Petkov <petkovbb@googlemail.com> Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Bu işleme şunda yer alıyor:

işlemeyi yapan:
Jens Axboe

ebeveyn
b079041030
işleme
34b7d2c957
@@ -380,7 +380,7 @@ static int ide_tape_callback(ide_drive_t *drive, int dsc)
|
||||
}
|
||||
|
||||
tape->first_frame += blocks;
|
||||
rq->resid_len = rq->data_len - blocks * tape->blk_size;
|
||||
rq->resid_len = blk_rq_bytes(rq) - blocks * tape->blk_size;
|
||||
|
||||
if (pc->error) {
|
||||
uptodate = 0;
|
||||
|
Yeni konuda referans
Bir kullanıcı engelle