summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-07-13 19:56:55 +0000
committeroster <oster@NetBSD.org>2002-07-13 19:56:55 +0000
commit33643c74c59757a1718cfa5f116d85f0d1f0a0cb (patch)
treee1a603c75c6cb291384c70eacddbf8fc4d1737a5 /sys/dev/raidframe
parent69fb0af0587218268c5ec36ad171a099fa563b38 (diff)
rf_compute_workload_shift() is only used by the CHAINDECLUSTER stuff,
so only include it if needed.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_dagutils.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_dagutils.c b/sys/dev/raidframe/rf_dagutils.c
index 134ede8bada..0dc6d03a4ed 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.10 2002/03/04 01:38:32 wiz Exp $ */
+/* $NetBSD: rf_dagutils.c,v 1.11 2002/07/13 19:56:55 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -33,7 +33,7 @@
*****************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_dagutils.c,v 1.10 2002/03/04 01:38:32 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_dagutils.c,v 1.11 2002/07/13 19:56:55 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -1076,6 +1076,9 @@ rf_RangeRestrictPDA(
rf_StripeUnitOffset(layoutPtr, dest->startSector);
}
}
+
+#if (RF_INCLUDE_CHAINDECLUSTER > 0)
+
/*
* Want the highest of these primes to be the largest one
* less than the max expected number of columns (won't hurt
@@ -1167,6 +1170,8 @@ rf_compute_workload_shift(
}
return (ret);
}
+#endif /* (RF_INCLUDE_CHAINDECLUSTER > 0) */
+
/*
* Disk selection routines
*/