Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe 'char *arrived' was such a nice variable. ...
details: https://anonhg.NetBSD.org/src/rev/e81f50b224b5
branches: trunk
changeset: 536450:e81f50b224b5
user: oster <oster%NetBSD.org@localhost>
date: Mon Sep 16 02:39:42 2002 +0000
description:
'char *arrived' was such a nice variable. Too bad all we ever did
with it was malloc/free space for it. *poof*
diffstat:
sys/dev/raidframe/rf_reconstruct.h | 4 +---
sys/dev/raidframe/rf_reconutil.c | 6 ++----
2 files changed, 3 insertions(+), 7 deletions(-)
diffs (52 lines):
diff -r 441afc1fed08 -r e81f50b224b5 sys/dev/raidframe/rf_reconstruct.h
--- a/sys/dev/raidframe/rf_reconstruct.h Mon Sep 16 02:36:53 2002 +0000
+++ b/sys/dev/raidframe/rf_reconstruct.h Mon Sep 16 02:39:42 2002 +0000
@@ -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 @@
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
diff -r 441afc1fed08 -r e81f50b224b5 sys/dev/raidframe/rf_reconutil.c
--- a/sys/dev/raidframe/rf_reconutil.c Mon Sep 16 02:36:53 2002 +0000
+++ b/sys/dev/raidframe/rf_reconutil.c Mon Sep 16 02:39:42 2002 +0000
@@ -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_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_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));
}
Home |
Main Index |
Thread Index |
Old Index