Fix typo + cleanup a bit.

This commit is contained in:
oster 2000-01-15 01:57:57 +00:00
parent e27fbcf4a2
commit 138d8fef04
1 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_paritylogDiskMgr.c,v 1.9 2000/01/14 04:03:52 oster Exp $ */ /* $NetBSD: rf_paritylogDiskMgr.c,v 1.10 2000/01/15 01:57:57 oster Exp $ */
/* /*
* Copyright (c) 1995 Carnegie-Mellon University. * Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved. * All rights reserved.
@ -73,7 +73,7 @@ AcquireReintBuffer(pool)
pool->availBuffersIndex = 0; pool->availBuffersIndex = 0;
RF_UNLOCK_MUTEX(pool->mutex); RF_UNLOCK_MUTEX(pool->mutex);
} else { } else {
RF_PANIC(); /* should never happen in currect config, RF_PANIC(); /* should never happen in correct config,
* single reint */ * single reint */
RF_WAIT_COND(pool->cond, pool->mutex); RF_WAIT_COND(pool->cond, pool->mutex);
} }
@ -382,9 +382,14 @@ ReintegrateRegion(
RF_PhysDiskAddr_t *rrd_pda, *prd_pda, *pwr_pda; RF_PhysDiskAddr_t *rrd_pda, *prd_pda, *pwr_pda;
caddr_t parityBuffer, regionBuffer = NULL; caddr_t parityBuffer, regionBuffer = NULL;
/* Reintegrate a region (regionID). 1. acquire region and parity /* Reintegrate a region (regionID).
* buffers 2. read log from disk 3. read parity from disk 4. apply log *
* to parity 5. apply core log to parity 6. write new parity to disk * 1. acquire region and parity buffers
* 2. read log from disk
* 3. read parity from disk
* 4. apply log to parity
* 5. apply core log to parity
* 6. write new parity to disk
* *
* BLOCKING */ * BLOCKING */