diff options
author | phk <phk@FreeBSD.org> | 1999-12-10 09:40:29 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-12-10 09:40:29 +0000 |
commit | 600b6d43b7aea86ce8af89c832e6ecc39737cf7d (patch) | |
tree | ea834b5a6d92fd4c856fd64bc0bdcb92bd946ce0 | |
parent | 5aa876a119748db16a0d7e9093395ddb0348860f (diff) | |
download | FreeBSD-src-600b6d43b7aea86ce8af89c832e6ecc39737cf7d.zip FreeBSD-src-600b6d43b7aea86ce8af89c832e6ecc39737cf7d.tar.gz |
Remove the B_BAD buffer flag, it is no longer used.
-rw-r--r-- | sys/i386/isa/wd.c | 11 | ||||
-rw-r--r-- | sys/pc98/pc98/wd.c | 11 | ||||
-rw-r--r-- | sys/sys/bio.h | 2 | ||||
-rw-r--r-- | sys/sys/buf.h | 2 |
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. */ |