Windows: move SERVERHAS64BIT macros to cm_conn.h

Move the SERVERHAS64BIT and SETSERVERHASNO64BIT macros to
cm_conn.h from cm_dcache.c.

Change-Id: I1e1a332a3bd968645912b4e0caa0d793ef96358c
Reviewed-on: http://gerrit.openafs.org/8829
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
Jeffrey Altman 2012-12-19 16:58:25 -05:00
parent b74c778bfd
commit 9054392cdc
2 changed files with 7 additions and 5 deletions

View File

@ -133,6 +133,13 @@ typedef struct cm_req {
#endif
#include "rx.h"
/*
* connp->serverp can be accessed without holding a lock because that
* never changes once the connection is created.
*/
#define SERVERHAS64BIT(connp) (!((connp)->serverp->flags & CM_SERVERFLAG_NO64BIT))
#define SET_SERVERHASNO64BIT(connp) (cm_SetServerNo64Bit((connp)->serverp, TRUE))
extern void cm_InitConn(void);
extern void cm_InitReq(cm_req_t *reqp);

View File

@ -34,11 +34,6 @@ extern osi_mutex_t cm_Freelance_Lock;
#define USE_RX_IOVEC 1
/* we can access connp->serverp without holding a lock because that
never changes since the connection is made. */
#define SERVERHAS64BIT(connp) (!((connp)->serverp->flags & CM_SERVERFLAG_NO64BIT))
#define SET_SERVERHASNO64BIT(connp) (cm_SetServerNo64Bit((connp)->serverp, TRUE))
/* functions called back from the buffer package when reading or writing data,
* or when holding or releasing a vnode pointer.
*/