summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/i386/isa/wd.c11
-rw-r--r--sys/pc98/pc98/wd.c11
-rw-r--r--sys/sys/bio.h2
-rw-r--r--sys/sys/buf.h2
4 files changed, 4 insertions, 22 deletions
diff --git a/sys/i386/isa/wd.c b/sys/i386/isa/wd.c
index 870145b..3069366 100644
--- a/sys/i386/isa/wd.c
+++ b/sys/i386/isa/wd.c
@@ -710,18 +710,9 @@ wdstart(int ctrlr)
secpertrk = lp->d_nsectors;
secpercyl = lp->d_secpercyl;
- if (du->dk_skip == 0) {
+ if (du->dk_skip == 0)
du->dk_bc = bp->b_bcount;
- if (bp->b_flags & B_BAD
- /*
- * XXX handle large transfers inefficiently instead
- * of crashing on them.
- */
- || howmany(du->dk_bc, DEV_BSIZE) > MAXTRANSFER)
- du->dk_flags |= DKFL_SINGLE;
- }
-
wdtab[ctrlr].b_active = 1; /* mark controller active */
/* if starting a multisector transfer, or doing single transfers */
diff --git a/sys/pc98/pc98/wd.c b/sys/pc98/pc98/wd.c
index 99976f5..49dfe3c 100644
--- a/sys/pc98/pc98/wd.c
+++ b/sys/pc98/pc98/wd.c
@@ -819,18 +819,9 @@ wdstart(int ctrlr)
secpertrk = lp->d_nsectors;
secpercyl = lp->d_secpercyl;
- if (du->dk_skip == 0) {
+ if (du->dk_skip == 0)
du->dk_bc = bp->b_bcount;
- if (bp->b_flags & B_BAD
- /*
- * XXX handle large transfers inefficiently instead
- * of crashing on them.
- */
- || howmany(du->dk_bc, DEV_BSIZE) > MAXTRANSFER)
- du->dk_flags |= DKFL_SINGLE;
- }
-
wdtab[ctrlr].b_active = 1; /* mark controller active */
/* if starting a multisector transfer, or doing single transfers */
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index f350e82..f9a09bb 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -186,7 +186,7 @@ struct buf {
#define B_AGE 0x00000001 /* Move to age queue when I/O done. */
#define B_NEEDCOMMIT 0x00000002 /* Append-write in progress. */
#define B_ASYNC 0x00000004 /* Start I/O, do not wait. */
-#define B_BAD 0x00000008 /* Bad block revectoring in progress. */
+#define B_UNUSED0 0x00000008 /* Old B_BAD */
#define B_UNUSED1 0x00000010 /* Old B_BUSY */
#define B_CACHE 0x00000020 /* Bread found us in the cache. */
#define B_CALL 0x00000040 /* Call b_iodone from biodone. */
diff --git a/sys/sys/buf.h b/sys/sys/buf.h
index f350e82..f9a09bb 100644
--- a/sys/sys/buf.h
+++ b/sys/sys/buf.h
@@ -186,7 +186,7 @@ struct buf {
#define B_AGE 0x00000001 /* Move to age queue when I/O done. */
#define B_NEEDCOMMIT 0x00000002 /* Append-write in progress. */
#define B_ASYNC 0x00000004 /* Start I/O, do not wait. */
-#define B_BAD 0x00000008 /* Bad block revectoring in progress. */
+#define B_UNUSED0 0x00000008 /* Old B_BAD */
#define B_UNUSED1 0x00000010 /* Old B_BUSY */
#define B_CACHE 0x00000020 /* Bread found us in the cache. */
#define B_CALL 0x00000040 /* Call b_iodone from biodone. */
OpenPOWER on IntegriCloud