summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disklabel.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-03-01 19:01:04 +0000
committerdyson <dyson@FreeBSD.org>1996-03-01 19:01:04 +0000
commit0d3859fc4832bd1d80625f81b97b1e37cc44bb93 (patch)
tree2d024ea1c506b42db3f4ed7e2046021f1f8d2caa /sys/kern/subr_disklabel.c
parent2dac23e9f496bd5dc0a82b65d5a5767f36b77fb3 (diff)
downloadFreeBSD-src-0d3859fc4832bd1d80625f81b97b1e37cc44bb93.zip
FreeBSD-src-0d3859fc4832bd1d80625f81b97b1e37cc44bb93.tar.gz
Fix a bug that b_flags was getting unnecessarily modified by
the slice code. The effect up to now has been insignficant, but improved buffer allocation code will break with this problem.
Diffstat (limited to 'sys/kern/subr_disklabel.c')
-rw-r--r--sys/kern/subr_disklabel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c
index 3598a69..5bdf975 100644
--- a/sys/kern/subr_disklabel.c
+++ b/sys/kern/subr_disklabel.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_disksubr.c 8.5 (Berkeley) 1/21/94
- * $Id: ufs_disksubr.c,v 1.19 1995/09/16 17:04:06 bde Exp $
+ * $Id: ufs_disksubr.c,v 1.20 1995/11/23 07:24:32 dyson Exp $
*/
#include <sys/param.h>
@@ -275,7 +275,7 @@ readdisklabel(dev, strat, lp)
break;
}
}
- bp->b_flags = B_INVAL | B_AGE;
+ bp->b_flags |= B_INVAL | B_AGE;
brelse(bp);
return (msg);
}
@@ -391,7 +391,7 @@ done:
(*strat)(bp);
error = biowait(bp);
#endif
- bp->b_flags = B_INVAL | B_AGE;
+ bp->b_flags |= B_INVAL | B_AGE;
brelse(bp);
return (error);
}
OpenPOWER on IntegriCloud