Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe Cosmetic cleanup of some comments, and nuk...



details:   https://anonhg.NetBSD.org/src/rev/7bf393815c5a
branches:  trunk
changeset: 502960:7bf393815c5a
user:      oster <oster%NetBSD.org@localhost>
date:      Sat Jan 27 20:10:49 2001 +0000

description:
Cosmetic cleanup of some comments, and nuke an unused #define.

diffstat:

 sys/dev/raidframe/rf_reconbuffer.c |  33 ++++++++++++++-------------------
 1 files changed, 14 insertions(+), 19 deletions(-)

diffs (59 lines):

diff -r 6369cb17728a -r 7bf393815c5a sys/dev/raidframe/rf_reconbuffer.c
--- a/sys/dev/raidframe/rf_reconbuffer.c        Sat Jan 27 19:34:43 2001 +0000
+++ b/sys/dev/raidframe/rf_reconbuffer.c        Sat Jan 27 20:10:49 2001 +0000
@@ -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 @@
 }
 
 
-/* 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;



Home | Main Index | Thread Index | Old Index