Subject: CVS commit: src/sys/dev/raidframe
To: None <source-changes@NetBSD.org>
From: Greg Oster <oster@netbsd.org>
List: source-changes
Date: 03/19/2004 02:27:45
Module Name:	src
Committed By:	oster
Date:		Fri Mar 19 02:27:45 UTC 2004

Modified Files:
	src/sys/dev/raidframe: rf_aselect.c rf_layout.h rf_map.c rf_map.h
	    rf_netbsd.h

Log Message:
Introduce 3 more pools and 6 functions to handle allocating/freeing
elements from the pools.

Re-work rf_SelectAlgorithm() to get rid of all the 8 malloc's, and to
use the new functions to get/put these 'support structures'.  I'm not
overly happy with some of the variable names, but them's the breaks.

In the process of changing things, fix a bug:
 - in the case where we can't create a dag, free asmh_b and blockFuncs
too!!

[if you were able to look at the source code related to these changes,
and comprehend what was going on without having your eyes bleed or
getting dizzy, please contact me...  I'm sure I'll have more code
which would benefit by you having a look at it before I commit it :) ]


To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 src/sys/dev/raidframe/rf_aselect.c
cvs rdiff -r1.11 -r1.12 src/sys/dev/raidframe/rf_layout.h
cvs rdiff -r1.33 -r1.34 src/sys/dev/raidframe/rf_map.c
cvs rdiff -r1.9 -r1.10 src/sys/dev/raidframe/rf_map.h
cvs rdiff -r1.16 -r1.17 src/sys/dev/raidframe/rf_netbsd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.