diff options
Diffstat (limited to 'net/ceph/osdmap.c')
-rw-r--r-- | net/ceph/osdmap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c index 29ad46ec9dcf..56e561a69004 100644 --- a/net/ceph/osdmap.c +++ b/net/ceph/osdmap.c | |||
@@ -38,7 +38,7 @@ done: | |||
38 | 38 | ||
39 | /* maps */ | 39 | /* maps */ |
40 | 40 | ||
41 | static int calc_bits_of(unsigned t) | 41 | static int calc_bits_of(unsigned int t) |
42 | { | 42 | { |
43 | int b = 0; | 43 | int b = 0; |
44 | while (t) { | 44 | while (t) { |
@@ -154,7 +154,7 @@ static struct crush_map *crush_decode(void *pbyval, void *end) | |||
154 | magic = ceph_decode_32(p); | 154 | magic = ceph_decode_32(p); |
155 | if (magic != CRUSH_MAGIC) { | 155 | if (magic != CRUSH_MAGIC) { |
156 | pr_err("crush_decode magic %x != current %x\n", | 156 | pr_err("crush_decode magic %x != current %x\n", |
157 | (unsigned)magic, (unsigned)CRUSH_MAGIC); | 157 | (unsigned int)magic, (unsigned int)CRUSH_MAGIC); |
158 | goto bad; | 158 | goto bad; |
159 | } | 159 | } |
160 | c->max_buckets = ceph_decode_32(p); | 160 | c->max_buckets = ceph_decode_32(p); |
@@ -460,7 +460,7 @@ static void __remove_pg_pool(struct rb_root *root, struct ceph_pg_pool_info *pi) | |||
460 | 460 | ||
461 | static int __decode_pool(void **p, void *end, struct ceph_pg_pool_info *pi) | 461 | static int __decode_pool(void **p, void *end, struct ceph_pg_pool_info *pi) |
462 | { | 462 | { |
463 | unsigned n, m; | 463 | unsigned int n, m; |
464 | 464 | ||
465 | ceph_decode_copy(p, &pi->v, sizeof(pi->v)); | 465 | ceph_decode_copy(p, &pi->v, sizeof(pi->v)); |
466 | calc_pg_masks(pi); | 466 | calc_pg_masks(pi); |
@@ -970,7 +970,7 @@ void ceph_calc_file_object_mapping(struct ceph_file_layout *layout, | |||
970 | objsetno = stripeno / su_per_object; | 970 | objsetno = stripeno / su_per_object; |
971 | 971 | ||
972 | *ono = objsetno * sc + stripepos; | 972 | *ono = objsetno * sc + stripepos; |
973 | dout("objset %u * sc %u = ono %u\n", objsetno, sc, (unsigned)*ono); | 973 | dout("objset %u * sc %u = ono %u\n", objsetno, sc, (unsigned int)*ono); |
974 | 974 | ||
975 | /* *oxoff = *off % layout->fl_stripe_unit; # offset in su */ | 975 | /* *oxoff = *off % layout->fl_stripe_unit; # offset in su */ |
976 | t = off; | 976 | t = off; |
@@ -998,12 +998,12 @@ int ceph_calc_object_layout(struct ceph_object_layout *ol, | |||
998 | struct ceph_file_layout *fl, | 998 | struct ceph_file_layout *fl, |
999 | struct ceph_osdmap *osdmap) | 999 | struct ceph_osdmap *osdmap) |
1000 | { | 1000 | { |
1001 | unsigned num, num_mask; | 1001 | unsigned int num, num_mask; |
1002 | struct ceph_pg pgid; | 1002 | struct ceph_pg pgid; |
1003 | s32 preferred = (s32)le32_to_cpu(fl->fl_pg_preferred); | 1003 | s32 preferred = (s32)le32_to_cpu(fl->fl_pg_preferred); |
1004 | int poolid = le32_to_cpu(fl->fl_pg_pool); | 1004 | int poolid = le32_to_cpu(fl->fl_pg_pool); |
1005 | struct ceph_pg_pool_info *pool; | 1005 | struct ceph_pg_pool_info *pool; |
1006 | unsigned ps; | 1006 | unsigned int ps; |
1007 | 1007 | ||
1008 | BUG_ON(!osdmap); | 1008 | BUG_ON(!osdmap); |
1009 | 1009 | ||
@@ -1045,7 +1045,7 @@ static int *calc_pg_raw(struct ceph_osdmap *osdmap, struct ceph_pg pgid, | |||
1045 | struct ceph_pg_mapping *pg; | 1045 | struct ceph_pg_mapping *pg; |
1046 | struct ceph_pg_pool_info *pool; | 1046 | struct ceph_pg_pool_info *pool; |
1047 | int ruleno; | 1047 | int ruleno; |
1048 | unsigned poolid, ps, pps, t; | 1048 | unsigned int poolid, ps, pps, t; |
1049 | int preferred; | 1049 | int preferred; |
1050 | 1050 | ||
1051 | poolid = le32_to_cpu(pgid.pool); | 1051 | poolid = le32_to_cpu(pgid.pool); |