*/
#include <string.h>
+#include <stdbool.h>
#include "msgr.h"
/*
{
return op & CEPH_OSD_OP_MODE_CACHE;
}
-static inline int ceph_osd_op_uses_extent(int op)
+static inline bool ceph_osd_op_uses_extent(int op)
{
switch(op) {
case CEPH_OSD_OP_READ:
-// there must be a better way?
-typedef char bool;
-#define false 0
-#define true 1
-
#include "include/int_types.h"
#include <string.h>
-
#ifndef CEPH_MDS_LOCKS_H
#define CEPH_MDS_LOCKS_H
+#include <stdbool.h>
struct sm_state_t {
int next; // 0 if stable
- char loner;
+ bool loner;
int replica_state;
char can_read;
char can_read_projected;