Fix the buffer flag frobbing. Note: It is invalid to gratuitiously modify
b_flags, and this patch removes unneeded modifications. Only the needed b_flags bits are modified now. (Specifically, it is usually wrong to zero b_flags.) Submitted by: bde@freebsd.org
This commit is contained in:
parent
e83b2033a7
commit
289500ad9e
@ -43,7 +43,7 @@
|
||||
* from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $
|
||||
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
|
||||
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
|
||||
* $Id$
|
||||
* $Id: subr_dkbad.c,v 1.6 1997/02/22 09:39:16 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -117,7 +117,8 @@ readbad144(dev, strat, lp, bdp)
|
||||
else
|
||||
bp->b_blkno /= DEV_BSIZE / lp->d_secsize;
|
||||
bp->b_bcount = lp->d_secsize;
|
||||
bp->b_flags = B_BUSY | B_READ;
|
||||
bp->b_flags |= B_BUSY | B_READ;
|
||||
bp->b_flags &= ~B_ERROR;
|
||||
(*strat)(bp);
|
||||
|
||||
/* If successful, validate, otherwise try another. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user