mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
Windows: Add SERVERHASINLINEBULK macros
Implement SERVERHASINLINEBULK and SET_SERVERHASINLINEBULK macros. Apply them to cm_vnodeops.c. Change-Id: Ib9e3ed7f745a7ad3acf03ae918d8d1ca406f19c0 Reviewed-on: http://gerrit.openafs.org/8830 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
parent
9054392cdc
commit
5f43eb2919
@ -140,6 +140,9 @@ typedef struct cm_req {
|
|||||||
#define SERVERHAS64BIT(connp) (!((connp)->serverp->flags & CM_SERVERFLAG_NO64BIT))
|
#define SERVERHAS64BIT(connp) (!((connp)->serverp->flags & CM_SERVERFLAG_NO64BIT))
|
||||||
#define SET_SERVERHASNO64BIT(connp) (cm_SetServerNo64Bit((connp)->serverp, TRUE))
|
#define SET_SERVERHASNO64BIT(connp) (cm_SetServerNo64Bit((connp)->serverp, TRUE))
|
||||||
|
|
||||||
|
#define SERVERHASINLINEBULK(connp) (!((connp)->serverp->flags & CM_SERVERFLAG_NOINLINEBULK))
|
||||||
|
#define SET_SERVERHASNOINLINEBULK(connp) (cm_SetServerNoInlineBulk((connp)->serverp, TRUE))
|
||||||
|
|
||||||
extern void cm_InitConn(void);
|
extern void cm_InitConn(void);
|
||||||
|
|
||||||
extern void cm_InitReq(cm_req_t *reqp);
|
extern void cm_InitReq(cm_req_t *reqp);
|
||||||
|
@ -2495,11 +2495,11 @@ cm_TryBulkStatRPC(cm_scache_t *dscp, cm_bulkStat_t *bbp, cm_user_t *userp, cm_re
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
rxconnp = cm_GetRxConn(connp);
|
rxconnp = cm_GetRxConn(connp);
|
||||||
if (!(connp->serverp->flags & CM_SERVERFLAG_NOINLINEBULK)) {
|
if (SERVERHASINLINEBULK(connp)) {
|
||||||
code = RXAFS_InlineBulkStatus(rxconnp, &fidStruct,
|
code = RXAFS_InlineBulkStatus(rxconnp, &fidStruct,
|
||||||
&statStruct, &callbackStruct, &volSync);
|
&statStruct, &callbackStruct, &volSync);
|
||||||
if (code == RXGEN_OPCODE) {
|
if (code == RXGEN_OPCODE) {
|
||||||
cm_SetServerNoInlineBulk(connp->serverp, 1);
|
SET_SERVERHASNOINLINEBULK(connp);
|
||||||
} else {
|
} else {
|
||||||
inlinebulk = 1;
|
inlinebulk = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user