Whamcloud - gitweb
*** empty log message ***
[fs/lustre-release.git] / lustre / include / linux / obd_rpc.h
index 64372c1..e0847bc 100644 (file)
@@ -1,5 +1,11 @@
 #ifndef __OBD_RPC_H
 #define __OBD_RPC_H
+/*
+ * Copyright (C) 2001  Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
 
 #include <linux/sunrpc/svc.h>
 #define OBD_TGT_VERSION  001
@@ -9,6 +15,10 @@
 #define OBD_TGT_SOFT 0x4
 
 
+/* generic wrappable next */
+
+#define NEXT_INDEX(index, max)                                 \
+       (((index + 1) >= max) ? 0 : (index + 1))
 
 
 /* error codes */