'char *arrived' was such a nice variable. Too bad all we ever did
with it was malloc/free space for it. *poof*
This commit is contained in:
parent
64d38d7104
commit
969c6e9caf
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_reconstruct.h,v 1.6 2001/10/04 15:58:56 oster Exp $ */
|
||||
/* $NetBSD: rf_reconstruct.h,v 1.7 2002/09/16 02:39:42 oster Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||
* All rights reserved.
|
||||
|
@ -59,8 +59,6 @@ struct RF_ReconBuffer_s {
|
|||
RF_StripeCount_t count; /* counts the # of SUs installed so far */
|
||||
int priority; /* used to force hi priority recon */
|
||||
RF_RbufType_t type; /* FORCED or FLOATING */
|
||||
char *arrived; /* [x] = 1/0 if SU from disk x has/hasn't
|
||||
* arrived */
|
||||
RF_ReconBuffer_t *next; /* used for buffer management */
|
||||
void *arg; /* generic field for general use */
|
||||
RF_RowCol_t spRow, spCol; /* spare disk to which this buf should
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_reconutil.c,v 1.7 2002/09/16 02:35:17 oster Exp $ */
|
||||
/* $NetBSD: rf_reconutil.c,v 1.8 2002/09/16 02:39:42 oster Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||
* All rights reserved.
|
||||
|
@ -31,7 +31,7 @@
|
|||
********************************************/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_reconutil.c,v 1.7 2002/09/16 02:35:17 oster Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_reconutil.c,v 1.8 2002/09/16 02:39:42 oster Exp $");
|
||||
|
||||
#include <dev/raidframe/raidframevar.h>
|
||||
|
||||
|
@ -240,7 +240,6 @@ rf_MakeReconBuffer(
|
|||
|
||||
RF_Malloc(t, sizeof(RF_ReconBuffer_t), (RF_ReconBuffer_t *));
|
||||
RF_Malloc(t->buffer, recon_buffer_size, (caddr_t));
|
||||
RF_Malloc(t->arrived, raidPtr->numCol * sizeof(char), (char *));
|
||||
t->raidPtr = raidPtr;
|
||||
t->row = row;
|
||||
t->col = col;
|
||||
|
@ -260,7 +259,6 @@ rf_FreeReconBuffer(rbuf)
|
|||
RF_Raid_t *raidPtr = rbuf->raidPtr;
|
||||
u_int recon_buffer_size = rf_RaidAddressToByte(raidPtr, raidPtr->Layout.SUsPerRU * raidPtr->Layout.sectorsPerStripeUnit);
|
||||
|
||||
RF_Free(rbuf->arrived, raidPtr->numCol * sizeof(char));
|
||||
RF_Free(rbuf->buffer, recon_buffer_size);
|
||||
RF_Free(rbuf, sizeof(*rbuf));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue