aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph/osdmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ceph/osdmap.h')
-rw-r--r--include/linux/ceph/osdmap.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h
index fe6d189bdd30..c612cff81f5c 100644
--- a/include/linux/ceph/osdmap.h
+++ b/include/linux/ceph/osdmap.h
@@ -143,10 +143,14 @@ struct ceph_pg_mapping {
143 struct { 143 struct {
144 int len; 144 int len;
145 int osds[]; 145 int osds[];
146 } pg_temp; 146 } pg_temp, pg_upmap;
147 struct { 147 struct {
148 int osd; 148 int osd;
149 } primary_temp; 149 } primary_temp;
150 struct {
151 int len;
152 int from_to[][2];
153 } pg_upmap_items;
150 }; 154 };
151}; 155};
152 156
@@ -165,6 +169,10 @@ struct ceph_osdmap {
165 struct rb_root pg_temp; 169 struct rb_root pg_temp;
166 struct rb_root primary_temp; 170 struct rb_root primary_temp;
167 171
172 /* remap (post-CRUSH, pre-up) */
173 struct rb_root pg_upmap; /* PG := raw set */
174 struct rb_root pg_upmap_items; /* from -> to within raw set */
175
168 u32 *osd_primary_affinity; 176 u32 *osd_primary_affinity;
169 177
170 struct rb_root pg_pools; 178 struct rb_root pg_pools;