summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2001-01-27 20:10:49 +0000
committeroster <oster@NetBSD.org>2001-01-27 20:10:49 +0000
commite6d8ca0deef293911b650f386c30893b41e7b1b5 (patch)
treeff464a08d1e22f0d94df87f081489e5886309d63 /sys/dev/raidframe
parent75ea8b428e27a96aad14c6f07650a9f2412e9451 (diff)
Cosmetic cleanup of some comments, and nuke an unused #define.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_reconbuffer.c33
1 files changed, 14 insertions, 19 deletions
diff --git a/sys/dev/raidframe/rf_reconbuffer.c b/sys/dev/raidframe/rf_reconbuffer.c
index 0e320da2b5e..b0e44eb02df 100644
--- a/sys/dev/raidframe/rf_reconbuffer.c
+++ b/sys/dev/raidframe/rf_reconbuffer.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_reconbuffer.c,v 1.4 2000/03/13 23:52:36 soren Exp $ */
+/* $NetBSD: rf_reconbuffer.c,v 1.5 2001/01/27 20:10:49 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -48,24 +48,20 @@
#define Dprintf4(s,a,b,c,d) if (rf_reconbufferDebug) printf(s,a,b,c,d)
#define Dprintf5(s,a,b,c,d,e) if (rf_reconbufferDebug) printf(s,a,b,c,d,e)
-/*****************************************************************************************
+/*****************************************************************************
*
- * Submit a reconstruction buffer to the manager for XOR.
- * We can only submit a buffer if (1) we can xor into an existing buffer, which means
- * we don't have to acquire a new one, (2) we can acquire a floating
- * recon buffer, or (3) the caller has indicated that we are allowed to keep the
- * submitted buffer.
+ * Submit a reconstruction buffer to the manager for XOR. We can only
+ * submit a buffer if (1) we can xor into an existing buffer, which
+ * means we don't have to acquire a new one, (2) we can acquire a
+ * floating recon buffer, or (3) the caller has indicated that we are
+ * allowed to keep the submitted buffer.
*
* Returns non-zero if and only if we were not able to submit.
- * In this case, we append the current disk ID to the wait list on the indicated
- * RU, so that it will be re-enabled when we acquire a buffer for this RU.
+ * In this case, we append the current disk ID to the wait list on the
+ * indicated RU, so that it will be re-enabled when we acquire a buffer
+ * for this RU.
*
- ****************************************************************************************/
-
-/* just to make the code below more readable */
-#define BUFWAIT_APPEND(_cb_, _pssPtr_, _row_, _col_) \
- _cb_ = rf_AllocCallbackDesc(); \
- (_cb_)->row = (_row_); (_cb_)->col = (_col_); (_cb_)->next = (_pssPtr_)->bufWaitList; (_pssPtr_)->bufWaitList = (_cb_);
+ ****************************************************************************/
/*
* nWayXorFuncs[i] is a pointer to a function that will xor "i"
@@ -339,11 +335,10 @@ out:
}
-/* if the reconstruction buffer is full, move it to the full list, which is maintained
- * sorted by failed disk sector offset
+/* if the reconstruction buffer is full, move it to the full list,
+ * which is maintained sorted by failed disk sector offset
*
- * ASSUMES THE RB_MUTEX IS LOCKED AT ENTRY.
- */
+ * ASSUMES THE RB_MUTEX IS LOCKED AT ENTRY. */
int
rf_CheckForFullRbuf(raidPtr, reconCtrl, pssPtr, numDataCol)
RF_Raid_t *raidPtr;