diff options
| author | oster <oster@NetBSD.org> | 2002-09-21 01:18:45 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2002-09-21 01:18:45 +0000 |
| commit | 580f8b6e1ee3cd47b1a79b9c96a59d559d64feef (patch) | |
| tree | 98971b81a0ba7379e0da78ddb2bd55fe535247f8 /sys/dev/raidframe/rf_map.c | |
| parent | eaa116bedaeed38a5f8255c88941f5db22f0eb85 (diff) | |
rf_FreePhysDiskAddr is only needed by paritylogging.
rf_NumFailedDataUnitsInStripe is only needed by PQ, RAID6 and EVENODD.
rf_PrintAccessStripeMap is only needed for RF_DEBUG_MAP.
Thanks Krister!
Diffstat (limited to 'sys/dev/raidframe/rf_map.c')
| -rw-r--r-- | sys/dev/raidframe/rf_map.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/dev/raidframe/rf_map.c b/sys/dev/raidframe/rf_map.c index 747fae1f3e5..31cb75a7878 100644 --- a/sys/dev/raidframe/rf_map.c +++ b/sys/dev/raidframe/rf_map.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_map.c,v 1.17 2002/09/21 01:14:22 oster Exp $ */ +/* $NetBSD: rf_map.c,v 1.18 2002/09/21 01:18:45 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -33,7 +33,7 @@ **************************************************************************/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_map.c,v 1.17 2002/09/21 01:14:22 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_map.c,v 1.18 2002/09/21 01:18:45 oster Exp $"); #include <dev/raidframe/raidframevar.h> @@ -416,12 +416,14 @@ rf_AllocPDAList(count) return (p); } +#if RF_INCLUDE_PARITYLOGGING > 0 void rf_FreePhysDiskAddr(p) RF_PhysDiskAddr_t *p; { RF_FREELIST_FREE(rf_pda_freelist, p, next); } +#endif static void rf_FreePDAList(l_start, l_end, count) @@ -574,6 +576,7 @@ rf_CheckStripeForFailures(raidPtr, asmap) } return (0); } +#if (RF_INCLUDE_DECL_PQ > 0) || (RF_INCLUDE_RAID6 > 0) || (RF_INCLUDE_EVENODD >0) /* return the number of failed data units in the stripe. */ @@ -608,20 +611,21 @@ rf_NumFailedDataUnitsInStripe(raidPtr, asmap) return numFailures; } - +#endif /***************************************************************************************** * * debug routines * ****************************************************************************************/ - +#if RF_DEBUG_MAP void rf_PrintAccessStripeMap(asm_h) RF_AccessStripeMapHeader_t *asm_h; { rf_PrintFullAccessStripeMap(asm_h, 0); } +#endif void rf_PrintFullAccessStripeMap(asm_h, prbuf) |
