diff options
author | Sage Weil <sage@newdream.net> | 2009-11-04 14:39:12 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-04 19:36:07 -0500 |
commit | 51042122d4f85e0f8ee577a4230f172fcc57c456 (patch) | |
tree | d5ccf5f84d362b6542a86eab6b6f50112111434b /fs/ceph/osdmap.h | |
parent | 63f2d211954b790fea0a9caeae605c7956535af6 (diff) |
ceph: fix endian conversions for ceph_pg
The endian conversions don't quite work with the old union ceph_pg. Just
make it a regular struct, and make each field __le. This is simpler and it
has the added bonus of actually working.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/osdmap.h')
-rw-r--r-- | fs/ceph/osdmap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ceph/osdmap.h b/fs/ceph/osdmap.h index 07127c6fb134..c4af8418aa00 100644 --- a/fs/ceph/osdmap.h +++ b/fs/ceph/osdmap.h | |||
@@ -25,7 +25,7 @@ struct ceph_pg_pool_info { | |||
25 | 25 | ||
26 | struct ceph_pg_mapping { | 26 | struct ceph_pg_mapping { |
27 | struct rb_node node; | 27 | struct rb_node node; |
28 | u64 pgid; | 28 | struct ceph_pg pgid; |
29 | int len; | 29 | int len; |
30 | int osds[]; | 30 | int osds[]; |
31 | }; | 31 | }; |
@@ -118,6 +118,7 @@ extern int ceph_calc_object_layout(struct ceph_object_layout *ol, | |||
118 | const char *oid, | 118 | const char *oid, |
119 | struct ceph_file_layout *fl, | 119 | struct ceph_file_layout *fl, |
120 | struct ceph_osdmap *osdmap); | 120 | struct ceph_osdmap *osdmap); |
121 | extern int ceph_calc_pg_primary(struct ceph_osdmap *osdmap, union ceph_pg pgid); | 121 | extern int ceph_calc_pg_primary(struct ceph_osdmap *osdmap, |
122 | struct ceph_pg pgid); | ||
122 | 123 | ||
123 | #endif | 124 | #endif |