diff options
Diffstat (limited to 'drivers/block/amiflop.c')
-rw-r--r-- | drivers/block/amiflop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c index 8ff95f2c0ede..e4a14b94828e 100644 --- a/drivers/block/amiflop.c +++ b/drivers/block/amiflop.c | |||
@@ -1351,13 +1351,13 @@ static void redo_fd_request(void) | |||
1351 | drive = floppy - unit; | 1351 | drive = floppy - unit; |
1352 | 1352 | ||
1353 | /* Here someone could investigate to be more efficient */ | 1353 | /* Here someone could investigate to be more efficient */ |
1354 | for (cnt = 0; cnt < CURRENT->current_nr_sectors; cnt++) { | 1354 | for (cnt = 0; cnt < blk_rq_cur_sectors(CURRENT); cnt++) { |
1355 | #ifdef DEBUG | 1355 | #ifdef DEBUG |
1356 | printk("fd: sector %ld + %d requested for %s\n", | 1356 | printk("fd: sector %ld + %d requested for %s\n", |
1357 | CURRENT->sector,cnt, | 1357 | blk_rq_pos(CURRENT), cnt, |
1358 | (rq_data_dir(CURRENT) == READ) ? "read" : "write"); | 1358 | (rq_data_dir(CURRENT) == READ) ? "read" : "write"); |
1359 | #endif | 1359 | #endif |
1360 | block = CURRENT->sector + cnt; | 1360 | block = blk_rq_pos(CURRENT) + cnt; |
1361 | if ((int)block > floppy->blocks) { | 1361 | if ((int)block > floppy->blocks) { |
1362 | __blk_end_request_cur(CURRENT, -EIO); | 1362 | __blk_end_request_cur(CURRENT, -EIO); |
1363 | goto repeat; | 1363 | goto repeat; |