1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-29 16:44:03 +00:00

Remove the B_BAD buffer flag, it is no longer used.

This commit is contained in:
Poul-Henning Kamp 1999-12-10 09:40:29 +00:00
parent da7c907d09
commit f8c8918755
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54388
4 changed files with 4 additions and 22 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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. */

View File

@ -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. */