return s;
}
-typedef uint32_t capseq_t;
+typedef __u32 capseq_t;
class CInode;
private:
CInode *inode;
- int wanted_caps; // what the client wants (ideally)
+ __u32 wanted_caps; // what the client wants (ideally)
- map<capseq_t, int> cap_history; // seq -> cap, [last_recv,last_sent]
+ map<capseq_t, __u32> cap_history; // seq -> cap, [last_recv,last_sent]
capseq_t last_sent, last_recv;
capseq_t last_open;
// caps issued, potentially still in hands of client
int issued() {
int c = 0;
- for (map<capseq_t,int>::iterator p = cap_history.begin();
+ for (map<capseq_t,__u32>::iterator p = cap_history.begin();
p != cap_history.end();
p++) {
c |= p->second;
assert(last_recv <= last_sent);
assert(seq <= last_sent);
while (!cap_history.empty()) {
- map<capseq_t,int>::iterator p = cap_history.begin();
+ map<capseq_t,__u32>::iterator p = cap_history.begin();
if (p->first > seq)
break;
int wait_offset;
// lock state
- int state;
- set<int> gather_set; // auth+rep. >= 0 is mds, < 0 is client
+ __s32 state;
+ set<__s32> gather_set; // auth+rep. >= 0 is mds, < 0 is client
int num_client_lease;
// local state
const static int BACKLOG = 2;
const static int FULLLOG = 3;
- int type;
+ __s32 type;
eversion_t split, floor;
Info::History history;
const static int CLONE = 2;
const static int DELETE = 3;
- int op; // write, zero, trunc, remove
+ __s32 op; // write, zero, trunc, remove
object_t oid;
eversion_t version;