[SSI] openssi/kernel/include/cluster/ssi/token comtok.h, 1.7, 1.8 svrtok.h, 1.5, 1.6 token.h, 1.5, 1.6

Roger Tsang <[email protected]>
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/token
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16224/kernel/include/cluster/ssi/token

Modified Files:
      Tag: OPENSSI-FC
	comtok.h svrtok.h token.h 
Log Message:
Bug fixes and enhancements. See ChangeLog.


Index: svrtok.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/token/svrtok.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- svrtok.h	3 Feb 2009 06:18:13 -0000	1.5
+++ svrtok.h	27 Oct 2009 03:18:30 -0000	1.6
@@ -85,18 +85,18 @@
 
 typedef struct nrsvrtcb {
 	nrsvrfifo_t tok_reqfifo;	/* Pending requests */
-	int tok_ndcount;		/* Number of 'node_ent's on list */
+	unsigned int tok_ndcount;	/* Number of 'node_ent's on list */
 	struct node_ent *tok_ndlist;	/* Node(s) which have token */
 } nrsvrtcb_t;
 
 struct mhnode_ent {
 	agent_t nd_agent;
-	int nd_numtoks;
+	unsigned int nd_numtoks;
 	struct mhnode_ent *nd_next;
 };
 
 typedef struct mhsvrtcb {
-	int tok_ndcount;		/* Number of 'node_ent's on list */
+	unsigned int tok_ndcount;	/* Number of 'node_ent's on list */
 	struct mhnode_ent *tok_ndlist;	/* Node(s) which have token */
 } mhsvrtcb_t;
 

Index: token.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/token/token.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- token.h	3 Feb 2009 06:18:13 -0000	1.5
+++ token.h	27 Oct 2009 03:18:30 -0000	1.6
@@ -52,7 +52,7 @@
 } nrtcb_t;
 
 typedef struct mhtcb {
-	int	mhtok_count;
+	unsigned int mhtok_count;
 } mhtcb_t;
 
 /* Head of request list (this is the mode requested from server */
@@ -93,6 +93,8 @@
 	object_t *req_objp;	/* objp passed in for this request */
 #ifdef CFSTOK_INTR
 	long req_release;	/* whether to release token */
+#define TOK_INTERRUPTED	0x01010101
+#define TOK_COMPLETED	0x02020202
 #endif
 };
 

Index: comtok.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/token/comtok.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- comtok.h	3 Feb 2009 06:18:13 -0000	1.7
+++ comtok.h	27 Oct 2009 03:18:30 -0000	1.8
@@ -108,7 +108,7 @@
 #if	!defined(__linux__) && defined(SIMUL)
 #define	MAXOFF		((range_off_t)LLONG_MAX)
 #else
-#define	MAXOFF		((range_off_t)(~0LL>>1))
+#define	MAXOFF		((range_off_t)(~0ULL>>1))
 #endif
 #define	MAXLEN		((range_off_t)MAXOFF)
 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.