Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe - remove memChunkEnable as an arg to InitH...



details:   https://anonhg.NetBSD.org/src/rev/df4ed9ced18b
branches:  trunk
changeset: 534706:df4ed9ced18b
user:      oster <oster%NetBSD.org@localhost>
date:      Fri Aug 02 01:15:22 2002 +0000

description:
- remove memChunkEnable as an arg to InitHdrNode

diffstat:

 sys/dev/raidframe/rf_aselect.c |  15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diffs (66 lines):

diff -r b1b1f56ab3a0 -r df4ed9ced18b sys/dev/raidframe/rf_aselect.c
--- a/sys/dev/raidframe/rf_aselect.c    Fri Aug 02 01:12:32 2002 +0000
+++ b/sys/dev/raidframe/rf_aselect.c    Fri Aug 02 01:15:22 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_aselect.c,v 1.6 2002/08/02 00:24:56 oster Exp $     */
+/*     $NetBSD: rf_aselect.c,v 1.7 2002/08/02 01:15:22 oster Exp $     */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -33,7 +33,7 @@
  *****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_aselect.c,v 1.6 2002/08/02 00:24:56 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_aselect.c,v 1.7 2002/08/02 01:15:22 oster Exp $");
 
 #include <dev/raidframe/raidframevar.h>
 
@@ -52,7 +52,7 @@
 static void TransferDagMemory(RF_DagHeader_t *, RF_DagHeader_t *);
 #endif
 
-static int InitHdrNode(RF_DagHeader_t **, RF_Raid_t *, int);
+static int InitHdrNode(RF_DagHeader_t **, RF_Raid_t *);
 static void UpdateNodeHdrPtr(RF_DagHeader_t *, RF_DagNode_t *);
 int     rf_SelectAlgorithm(RF_RaidAccessDesc_t *, RF_RaidAccessFlags_t);
 
@@ -63,10 +63,9 @@
  *
  *****************************************************************************/
 static int 
-InitHdrNode(hdr, raidPtr, memChunkEnable)
+InitHdrNode(hdr, raidPtr)
        RF_DagHeader_t **hdr;
        RF_Raid_t *raidPtr;
-       int     memChunkEnable;
 {
        /* create and initialize dag hdr */
        *hdr = rf_AllocDAGHeader();
@@ -317,7 +316,7 @@
                                                for (k = 0; k < physPtr->numSector; k++) {
                                                        /* create a dag for
                                                         * this block */
-                                                       InitHdrNode(&tempdag_h, raidPtr, rf_useMemChunks);
+                                                       InitHdrNode(&tempdag_h, raidPtr);
                                                        desc->dagArray[i].numDags++;
                                                        if (dag_h == NULL) {
                                                                dag_h = tempdag_h;
@@ -334,7 +333,7 @@
                                                stripeUnitNum++;
                                        } else {
                                                /* create a dag for this unit */
-                                               InitHdrNode(&tempdag_h, raidPtr, rf_useMemChunks);
+                                               InitHdrNode(&tempdag_h, raidPtr);
                                                desc->dagArray[i].numDags++;
                                                if (dag_h == NULL) {
                                                        dag_h = tempdag_h;
@@ -353,7 +352,7 @@
                                stripeNum++;
                        } else {
                                /* Create a dag for this parity stripe */
-                               InitHdrNode(&tempdag_h, raidPtr, rf_useMemChunks);
+                               InitHdrNode(&tempdag_h, raidPtr);
                                desc->dagArray[i].numDags++;
                                if (dag_h == NULL) {
                                        dag_h = tempdag_h;



Home | Main Index | Thread Index | Old Index