From 540f5668583c694b3bce317a7e808646a7268a17 Mon Sep 17 00:00:00 2001 From: oster Date: Fri, 22 Nov 2002 20:56:10 +0000 Subject: [PATCH] rf_SelectMirrorDiskPartition() is only needed in a few cases. #if it out in the rest. Thanks to Krister! --- sys/dev/raidframe/rf_dagutils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/raidframe/rf_dagutils.c b/sys/dev/raidframe/rf_dagutils.c index a218530a6823..68ba9a551d0c 100644 --- a/sys/dev/raidframe/rf_dagutils.c +++ b/sys/dev/raidframe/rf_dagutils.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_dagutils.c,v 1.18 2002/09/23 02:49:14 oster Exp $ */ +/* $NetBSD: rf_dagutils.c,v 1.19 2002/11/22 20:56:10 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -33,7 +33,7 @@ *****************************************************************************/ #include -__KERNEL_RCSID(0, "$NetBSD: rf_dagutils.c,v 1.18 2002/09/23 02:49:14 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_dagutils.c,v 1.19 2002/11/22 20:56:10 oster Exp $"); #include @@ -1220,6 +1220,7 @@ rf_SelectMirrorDiskIdle(RF_DagNode_t * node) /* printf("dataQueueLength %d, mirrorQueueLength * %d\n",dataQueueLength, mirrorQueueLength); */ } +#if (RF_INCLUDE_CHAINDECLUSTER > 0) || (RF_INCLUDE_INTERDECLUSTER > 0) || (RF_DEBUG_VALIDATE_DAG > 0) /* * Do simple partitioning. This assumes that * the data and parity disks are laid out identically. @@ -1268,3 +1269,4 @@ rf_SelectMirrorDiskPartition(RF_DagNode_t * node) /* use data disk, leave param 0 unchanged */ } } +#endif