Merge tag 'pm-5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
[linux-2.6-microblaze.git] / fs / ceph / metric.h
index 710f3f1..af6038f 100644 (file)
@@ -27,6 +27,7 @@ enum ceph_metric_type {
        CLIENT_METRIC_TYPE_READ_LATENCY,        \
        CLIENT_METRIC_TYPE_WRITE_LATENCY,       \
        CLIENT_METRIC_TYPE_METADATA_LATENCY,    \
+       CLIENT_METRIC_TYPE_DENTRY_LEASE,        \
                                                \
        CLIENT_METRIC_TYPE_MAX,                 \
 }
@@ -80,6 +81,19 @@ struct ceph_metric_metadata_latency {
        __le32 nsec;
 } __packed;
 
+/* metric dentry lease header */
+struct ceph_metric_dlease {
+       __le32 type;     /* ceph metric type */
+
+       __u8  ver;
+       __u8  compat;
+
+       __le32 data_len; /* length of sizeof(hit + mis + total) */
+       __le64 hit;
+       __le64 mis;
+       __le64 total;
+} __packed;
+
 struct ceph_metric_head {
        __le32 num;     /* the number of metrics that will be sent */
 } __packed;