From: Alex Valys <avalys@optonline.net>
To: linux-kernel@vger.kernel.org
Subject: PATCH: Fixes occurences of bio_size in ide_floppy.c
Date: Thu, 29 Nov 2001 21:47:04 -0500 [thread overview]
Message-ID: <0GNL003AFEF7RO@mta2.srv.hcvlny.cv.net> (raw)
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;
next reply other threads:[~2001-11-30 2:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-30 2:47 Alex Valys [this message]
2001-11-30 7:39 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0GNL003AFEF7RO@mta2.srv.hcvlny.cv.net \
--to=avalys@optonline.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®