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:
parent
da7c907d09
commit
f8c8918755
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54388
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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. */
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user