public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH:  Fixes occurences of bio_size in ide_floppy.c
@ 2001-11-30  2:47 Alex Valys
  2001-11-30  7:39 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Valys @ 2001-11-30  2:47 UTC (permalink / raw)
  To: linux-kernel

Haven't noticed this posted yet...

--- drivers/ide/ide-floppy.c.orig       Thu Nov 29 21:05:56 2001
+++ drivers/ide/ide-floppy.c    Thu Nov 29 21:11:44 2001
@@ -711,7 +711,7 @@
        int count;

        while (bcount) {
-               if (pc->b_count == bio_size(bio)) {
+               if (pc->b_count == bio->bi_size) {
                        rq->sector += rq->current_nr_sectors;
                        rq->nr_sectors -= rq->current_nr_sectors;
                        idefloppy_end_request (1, HWGROUP(drive));
@@ -723,7 +723,8 @@
                        idefloppy_discard_data (drive, bcount);
                        return;
                }
-               count = IDEFLOPPY_MIN (bio_size(bio) - pc->b_count, bcount);
+               count = IDEFLOPPY_MIN (bio->bi_size - pc->b_count,
+bcount);
                atapi_input_bytes (drive, bio_data(bio) + pc->b_count, count);
                bcount -= count; pc->b_count += count;
        }
@@ -742,7 +743,7 @@
                        idefloppy_end_request (1, HWGROUP(drive));
                        if ((bio = rq->bio) != NULL) {
                                pc->b_data = bio_data(bio);
-                               pc->b_count = bio_size(bio);
+                               pc->b_count = bio->bi_size;
                        }
                }
                if (bio == NULL) {
@@ -1210,7 +1211,7 @@
        pc->callback = &idefloppy_rw_callback;
        pc->rq = rq;
        pc->b_data = rq->buffer;
-       pc->b_count = rq->cmd == READ ? 0 : bio_size(rq->bio);
+       pc->b_count = rq->cmd == READ ? 0 : rq->bio->bi_size;
        if (rq->cmd == WRITE)
                set_bit (PC_WRITING, &pc->flags);
        pc->buffer = NULL;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH:  Fixes occurences of bio_size in ide_floppy.c
  2001-11-30  2:47 PATCH: Fixes occurences of bio_size in ide_floppy.c Alex Valys
@ 2001-11-30  7:39 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2001-11-30  7:39 UTC (permalink / raw)
  To: Alex Valys; +Cc: linux-kernel

On Thu, Nov 29 2001, Alex Valys wrote:
> Haven't noticed this posted yet...

Thanks, applied.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-30  7:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-30  2:47 PATCH: Fixes occurences of bio_size in ide_floppy.c Alex Valys
2001-11-30  7:39 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox