diff options
Diffstat (limited to 'include/linux/ceph')
| -rw-r--r-- | include/linux/ceph/ceph_features.h | 8 | ||||
| -rw-r--r-- | include/linux/ceph/osd_client.h | 1 | ||||
| -rw-r--r-- | include/linux/ceph/osdmap.h | 2 | ||||
| -rw-r--r-- | include/linux/ceph/rados.h | 4 |
4 files changed, 11 insertions, 4 deletions
diff --git a/include/linux/ceph/ceph_features.h b/include/linux/ceph/ceph_features.h index f0f6c537b64c..040dd105c3e7 100644 --- a/include/linux/ceph/ceph_features.h +++ b/include/linux/ceph/ceph_features.h | |||
| @@ -10,14 +10,14 @@ | |||
| 10 | #define CEPH_FEATURE_INCARNATION_2 (1ull<<57) // CEPH_FEATURE_SERVER_JEWEL | 10 | #define CEPH_FEATURE_INCARNATION_2 (1ull<<57) // CEPH_FEATURE_SERVER_JEWEL |
| 11 | 11 | ||
| 12 | #define DEFINE_CEPH_FEATURE(bit, incarnation, name) \ | 12 | #define DEFINE_CEPH_FEATURE(bit, incarnation, name) \ |
| 13 | const static uint64_t CEPH_FEATURE_##name = (1ULL<<bit); \ | 13 | static const uint64_t CEPH_FEATURE_##name = (1ULL<<bit); \ |
| 14 | const static uint64_t CEPH_FEATUREMASK_##name = \ | 14 | static const uint64_t CEPH_FEATUREMASK_##name = \ |
| 15 | (1ULL<<bit | CEPH_FEATURE_INCARNATION_##incarnation); | 15 | (1ULL<<bit | CEPH_FEATURE_INCARNATION_##incarnation); |
| 16 | 16 | ||
| 17 | /* this bit is ignored but still advertised by release *when* */ | 17 | /* this bit is ignored but still advertised by release *when* */ |
| 18 | #define DEFINE_CEPH_FEATURE_DEPRECATED(bit, incarnation, name, when) \ | 18 | #define DEFINE_CEPH_FEATURE_DEPRECATED(bit, incarnation, name, when) \ |
| 19 | const static uint64_t DEPRECATED_CEPH_FEATURE_##name = (1ULL<<bit); \ | 19 | static const uint64_t DEPRECATED_CEPH_FEATURE_##name = (1ULL<<bit); \ |
| 20 | const static uint64_t DEPRECATED_CEPH_FEATUREMASK_##name = \ | 20 | static const uint64_t DEPRECATED_CEPH_FEATUREMASK_##name = \ |
| 21 | (1ULL<<bit | CEPH_FEATURE_INCARNATION_##incarnation); | 21 | (1ULL<<bit | CEPH_FEATURE_INCARNATION_##incarnation); |
| 22 | 22 | ||
| 23 | /* | 23 | /* |
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index c6d96a5f46fd..adf670ecaf94 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
| @@ -148,6 +148,7 @@ struct ceph_osd_request_target { | |||
| 148 | int size; | 148 | int size; |
| 149 | int min_size; | 149 | int min_size; |
| 150 | bool sort_bitwise; | 150 | bool sort_bitwise; |
| 151 | bool recovery_deletes; | ||
| 151 | 152 | ||
| 152 | unsigned int flags; /* CEPH_OSD_FLAG_* */ | 153 | unsigned int flags; /* CEPH_OSD_FLAG_* */ |
| 153 | bool paused; | 154 | bool paused; |
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h index a0996cb9faed..af3444a5bfdd 100644 --- a/include/linux/ceph/osdmap.h +++ b/include/linux/ceph/osdmap.h | |||
| @@ -272,6 +272,8 @@ bool ceph_is_new_interval(const struct ceph_osds *old_acting, | |||
| 272 | u32 new_pg_num, | 272 | u32 new_pg_num, |
| 273 | bool old_sort_bitwise, | 273 | bool old_sort_bitwise, |
| 274 | bool new_sort_bitwise, | 274 | bool new_sort_bitwise, |
| 275 | bool old_recovery_deletes, | ||
| 276 | bool new_recovery_deletes, | ||
| 275 | const struct ceph_pg *pgid); | 277 | const struct ceph_pg *pgid); |
| 276 | bool ceph_osds_changed(const struct ceph_osds *old_acting, | 278 | bool ceph_osds_changed(const struct ceph_osds *old_acting, |
| 277 | const struct ceph_osds *new_acting, | 279 | const struct ceph_osds *new_acting, |
diff --git a/include/linux/ceph/rados.h b/include/linux/ceph/rados.h index 385db08bb8b2..b8281feda9c7 100644 --- a/include/linux/ceph/rados.h +++ b/include/linux/ceph/rados.h | |||
| @@ -158,6 +158,10 @@ extern const char *ceph_osd_state_name(int s); | |||
| 158 | #define CEPH_OSDMAP_NOTIERAGENT (1<<13) /* disable tiering agent */ | 158 | #define CEPH_OSDMAP_NOTIERAGENT (1<<13) /* disable tiering agent */ |
| 159 | #define CEPH_OSDMAP_NOREBALANCE (1<<14) /* block osd backfill unless pg is degraded */ | 159 | #define CEPH_OSDMAP_NOREBALANCE (1<<14) /* block osd backfill unless pg is degraded */ |
| 160 | #define CEPH_OSDMAP_SORTBITWISE (1<<15) /* use bitwise hobject_t sort */ | 160 | #define CEPH_OSDMAP_SORTBITWISE (1<<15) /* use bitwise hobject_t sort */ |
| 161 | #define CEPH_OSDMAP_REQUIRE_JEWEL (1<<16) /* require jewel for booting osds */ | ||
| 162 | #define CEPH_OSDMAP_REQUIRE_KRAKEN (1<<17) /* require kraken for booting osds */ | ||
| 163 | #define CEPH_OSDMAP_REQUIRE_LUMINOUS (1<<18) /* require l for booting osds */ | ||
| 164 | #define CEPH_OSDMAP_RECOVERY_DELETES (1<<19) /* deletes performed during recovery instead of peering */ | ||
| 161 | 165 | ||
| 162 | /* | 166 | /* |
| 163 | * The error code to return when an OSD can't handle a write | 167 | * The error code to return when an OSD can't handle a write |
