aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/amr
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2000-04-02 15:24:56 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2000-04-02 15:24:56 +0000
commitc244d2de435ed1913d6a7da017b205bffb44b36d (patch)
tree46bc33c5a3d3f0f652e9af40acac38ed8c4492c6 /sys/dev/amr
parent4c9805fafa5fb041fa369df26cd26fee579223fe (diff)
downloadsrc-c244d2de435ed1913d6a7da017b205bffb44b36d.tar.gz
src-c244d2de435ed1913d6a7da017b205bffb44b36d.zip
Move B_ERROR flag to b_ioflags and call it BIO_ERROR.
(Much of this done by script) Move B_ORDERED flag to b_ioflags and call it BIO_ORDERED. Move b_pblkno and b_iodone_chain to struct bio while we transition, they will be obsoleted once bio structs chain/stack. Add bio_queue field for struct bio aware disksort. Address a lot of stylistic issues brought up by bde.
Notes
Notes: svn path=/head/; revision=58934
Diffstat (limited to 'sys/dev/amr')
-rw-r--r--sys/dev/amr/amr.c2
-rw-r--r--sys/dev/amr/amr_disk.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c
index c38f1d19440c..54ab85a45ff4 100644
--- a/sys/dev/amr/amr.c
+++ b/sys/dev/amr/amr.c
@@ -976,7 +976,7 @@ amr_completeio(struct amr_command *ac)
if (ac->ac_status != AMR_STATUS_SUCCESS) { /* could be more verbose here? */
bp->b_error = EIO;
- bp->b_flags |= B_ERROR;
+ bp->b_ioflags |= BIO_ERROR;
switch(ac->ac_status) {
/* XXX need more information on I/O error reasons */
diff --git a/sys/dev/amr/amr_disk.c b/sys/dev/amr/amr_disk.c
index 6ce523dd0624..10cf0d64eb54 100644
--- a/sys/dev/amr/amr_disk.c
+++ b/sys/dev/amr/amr_disk.c
@@ -202,7 +202,7 @@ amrd_strategy(struct buf *bp)
return;
bad:
- bp->b_flags |= B_ERROR;
+ bp->b_ioflags |= BIO_ERROR;
done:
/*
@@ -221,7 +221,7 @@ amrd_intr(void *data)
debug("called");
- if (bp->b_flags & B_ERROR) {
+ if (bp->b_ioflags & BIO_ERROR) {
bp->b_error = EIO;
debug("i/o error\n");
} else {