aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_dkbad.c
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1997-11-24 04:14:21 +0000
committerJohn Dyson <dyson@FreeBSD.org>1997-11-24 04:14:21 +0000
commit289500ad9e596bd88b738bbe93d1823beacca6af (patch)
tree33a26a5366ae82323942a034add55224de80c1db /sys/kern/subr_dkbad.c
parente83b2033a72969382dde51d7449b6b6c9b130bbc (diff)
downloadsrc-289500ad9e596bd88b738bbe93d1823beacca6af.tar.gz
src-289500ad9e596bd88b738bbe93d1823beacca6af.zip
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
Notes
Notes: svn path=/head/; revision=31378
Diffstat (limited to 'sys/kern/subr_dkbad.c')
-rw-r--r--sys/kern/subr_dkbad.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/subr_dkbad.c b/sys/kern/subr_dkbad.c
index 8fef8635a013..f2857c810618 100644
--- a/sys/kern/subr_dkbad.c
+++ b/sys/kern/subr_dkbad.c
@@ -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. */