diff options
Diffstat (limited to 'drivers/block/ataflop.c')
-rw-r--r-- | drivers/block/ataflop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c index 25067287211f..234024cda5ec 100644 --- a/drivers/block/ataflop.c +++ b/drivers/block/ataflop.c | |||
@@ -725,7 +725,7 @@ static void do_fd_action( int drive ) | |||
725 | if (IS_BUFFERED( drive, ReqSide, ReqTrack )) { | 725 | if (IS_BUFFERED( drive, ReqSide, ReqTrack )) { |
726 | if (ReqCmd == READ) { | 726 | if (ReqCmd == READ) { |
727 | copy_buffer( SECTOR_BUFFER(ReqSector), ReqData ); | 727 | copy_buffer( SECTOR_BUFFER(ReqSector), ReqData ); |
728 | if (++ReqCnt < CURRENT->current_nr_sectors) { | 728 | if (++ReqCnt < blk_rq_cur_sectors(CURRENT)) { |
729 | /* read next sector */ | 729 | /* read next sector */ |
730 | setup_req_params( drive ); | 730 | setup_req_params( drive ); |
731 | goto repeat; | 731 | goto repeat; |
@@ -1130,7 +1130,7 @@ static void fd_rwsec_done1(int status) | |||
1130 | } | 1130 | } |
1131 | } | 1131 | } |
1132 | 1132 | ||
1133 | if (++ReqCnt < CURRENT->current_nr_sectors) { | 1133 | if (++ReqCnt < blk_rq_cur_sectors(CURRENT)) { |
1134 | /* read next sector */ | 1134 | /* read next sector */ |
1135 | setup_req_params( SelectedDrive ); | 1135 | setup_req_params( SelectedDrive ); |
1136 | do_fd_action( SelectedDrive ); | 1136 | do_fd_action( SelectedDrive ); |
@@ -1394,7 +1394,7 @@ static void redo_fd_request(void) | |||
1394 | 1394 | ||
1395 | DPRINT(("redo_fd_request: CURRENT=%p dev=%s CURRENT->sector=%ld\n", | 1395 | DPRINT(("redo_fd_request: CURRENT=%p dev=%s CURRENT->sector=%ld\n", |
1396 | CURRENT, CURRENT ? CURRENT->rq_disk->disk_name : "", | 1396 | CURRENT, CURRENT ? CURRENT->rq_disk->disk_name : "", |
1397 | CURRENT ? CURRENT->sector : 0 )); | 1397 | CURRENT ? blk_rq_pos(CURRENT) : 0 )); |
1398 | 1398 | ||
1399 | IsFormatting = 0; | 1399 | IsFormatting = 0; |
1400 | 1400 | ||
@@ -1440,7 +1440,7 @@ repeat: | |||
1440 | UD.autoprobe = 0; | 1440 | UD.autoprobe = 0; |
1441 | } | 1441 | } |
1442 | 1442 | ||
1443 | if (CURRENT->sector + 1 > UDT->blocks) { | 1443 | if (blk_rq_pos(CURRENT) + 1 > UDT->blocks) { |
1444 | __blk_end_request_cur(CURRENT, -EIO); | 1444 | __blk_end_request_cur(CURRENT, -EIO); |
1445 | goto repeat; | 1445 | goto repeat; |
1446 | } | 1446 | } |
@@ -1450,7 +1450,7 @@ repeat: | |||
1450 | 1450 | ||
1451 | ReqCnt = 0; | 1451 | ReqCnt = 0; |
1452 | ReqCmd = rq_data_dir(CURRENT); | 1452 | ReqCmd = rq_data_dir(CURRENT); |
1453 | ReqBlock = CURRENT->sector; | 1453 | ReqBlock = blk_rq_pos(CURRENT); |
1454 | ReqBuffer = CURRENT->buffer; | 1454 | ReqBuffer = CURRENT->buffer; |
1455 | setup_req_params( drive ); | 1455 | setup_req_params( drive ); |
1456 | do_fd_action( drive ); | 1456 | do_fd_action( drive ); |