Make sure that we record the flags in all cases.

Submitted by: Bernd Walter <ticso@cicely.de>
PR:	      kern/12399
This commit is contained in:
Doug Rabson 1999-06-26 10:27:30 +00:00
parent 9810672047
commit 9fd5198d2d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48235

View File

@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: subr_rman.c,v 1.6 1999/04/11 02:27:06 eivind Exp $
* $Id: subr_rman.c,v 1.7 1999/04/16 21:22:39 peter Exp $
*/
/*
@ -244,7 +244,7 @@ rman_reserve_resource(struct rman *rm, u_long start, u_long end, u_long count,
printf("candidate region is entire chunk\n");
#endif /* RMAN_DEBUG */
rv = s;
rv->r_flags |= RF_ALLOCATED;
rv->r_flags |= RF_ALLOCATED | flags;
rv->r_dev = dev;
goto out;
}