diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ceph/osdmap.h | 3 | ||||
| -rw-r--r-- | include/linux/ceph/rados.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h index db4fb6322aae..6e030cb3c9ca 100644 --- a/include/linux/ceph/osdmap.h +++ b/include/linux/ceph/osdmap.h | |||
| @@ -88,6 +88,8 @@ struct ceph_osdmap { | |||
| 88 | struct rb_root pg_temp; | 88 | struct rb_root pg_temp; |
| 89 | struct rb_root primary_temp; | 89 | struct rb_root primary_temp; |
| 90 | 90 | ||
| 91 | u32 *osd_primary_affinity; | ||
| 92 | |||
| 91 | struct rb_root pg_pools; | 93 | struct rb_root pg_pools; |
| 92 | u32 pool_max; | 94 | u32 pool_max; |
| 93 | 95 | ||
| @@ -134,6 +136,7 @@ static inline bool ceph_osdmap_flag(struct ceph_osdmap *map, int flag) | |||
| 134 | } | 136 | } |
| 135 | 137 | ||
| 136 | extern char *ceph_osdmap_state_str(char *str, int len, int state); | 138 | extern char *ceph_osdmap_state_str(char *str, int len, int state); |
| 139 | extern u32 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd); | ||
| 137 | 140 | ||
| 138 | static inline struct ceph_entity_addr *ceph_osd_addr(struct ceph_osdmap *map, | 141 | static inline struct ceph_entity_addr *ceph_osd_addr(struct ceph_osdmap *map, |
| 139 | int osd) | 142 | int osd) |
diff --git a/include/linux/ceph/rados.h b/include/linux/ceph/rados.h index 2caabef8d369..bb6f40c9cb0f 100644 --- a/include/linux/ceph/rados.h +++ b/include/linux/ceph/rados.h | |||
| @@ -133,6 +133,10 @@ extern const char *ceph_osd_state_name(int s); | |||
| 133 | #define CEPH_OSD_IN 0x10000 | 133 | #define CEPH_OSD_IN 0x10000 |
| 134 | #define CEPH_OSD_OUT 0 | 134 | #define CEPH_OSD_OUT 0 |
| 135 | 135 | ||
| 136 | /* osd primary-affinity. fixed point value: 0x10000 == baseline */ | ||
| 137 | #define CEPH_OSD_MAX_PRIMARY_AFFINITY 0x10000 | ||
| 138 | #define CEPH_OSD_DEFAULT_PRIMARY_AFFINITY 0x10000 | ||
| 139 | |||
| 136 | 140 | ||
| 137 | /* | 141 | /* |
| 138 | * osd map flag bits | 142 | * osd map flag bits |
