aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-04-28 10:07:23 -0400
committerIlya Dryomov <idryomov@gmail.com>2016-05-25 18:36:26 -0400
commit04812acf572ef41fd51c11e0bf3385f34c0e1b5b (patch)
tree697007c9096ea677ab4093b168e7cffa874b6523 /include/linux/ceph
parentf984cb76cc5fb9fc76d6abb6c4694a5412e3f49b (diff)
libceph: pi->min_size, pi->last_force_request_resend
Add and decode pi->min_size and pi->last_force_request_resend. These are going to be used by calc_target(). Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r--include/linux/ceph/osdmap.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h
index 7783237ab06c..989294d0b8d2 100644
--- a/include/linux/ceph/osdmap.h
+++ b/include/linux/ceph/osdmap.h
@@ -26,20 +26,23 @@ struct ceph_pg {
26 26
27int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs); 27int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs);
28 28
29#define CEPH_POOL_FLAG_HASHPSPOOL 1 29#define CEPH_POOL_FLAG_HASHPSPOOL (1ULL << 0) /* hash pg seed and pool id
30 together */
30 31
31struct ceph_pg_pool_info { 32struct ceph_pg_pool_info {
32 struct rb_node node; 33 struct rb_node node;
33 s64 id; 34 s64 id;
34 u8 type; 35 u8 type; /* CEPH_POOL_TYPE_* */
35 u8 size; 36 u8 size;
37 u8 min_size;
36 u8 crush_ruleset; 38 u8 crush_ruleset;
37 u8 object_hash; 39 u8 object_hash;
40 u32 last_force_request_resend;
38 u32 pg_num, pgp_num; 41 u32 pg_num, pgp_num;
39 int pg_num_mask, pgp_num_mask; 42 int pg_num_mask, pgp_num_mask;
40 s64 read_tier; 43 s64 read_tier;
41 s64 write_tier; /* wins for read+write ops */ 44 s64 write_tier; /* wins for read+write ops */
42 u64 flags; 45 u64 flags; /* CEPH_POOL_FLAG_* */
43 char *name; 46 char *name;
44}; 47};
45 48