summaryrefslogtreecommitdiffstats
path: root/sys/ufs
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/ufs
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/ufs')
-rw-r--r--sys/ufs/ufs/ufs_disksubr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ufs/ufs_disksubr.c b/sys/ufs/ufs/ufs_disksubr.c
index 3598a69..5bdf975 100644
--- a/sys/ufs/ufs/ufs_disksubr.c
+++ b/sys/ufs/ufs/ufs_disksubr.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