History

ceph: pass the mdsc to several helpers

We will use the 'mdsc' to get the global_id in the following commits.

Xiubo Li committed 3 years ago

Commit 197b7d71 parent 5c5f0d210 files · +55 −37Browse files

Showing the changes to include/linux/ceph (1 of 10 files). Show all

Unified · Split

include/linux/ceph/mdsmap.h+4−1
@@ -5,6 +5,8 @@ · 4 unmodified lines
55 #include <linux/bug.h>
66 #include <linux/ceph/types.h>
77
8+struct ceph_mds_client;
9+
810 /*
911 * mds map - describe servers in the mds cluster.
1012 *
@@ -65,7 +67,8 @@ static inline bool ceph_mdsmap_is_laggy(struct ceph_mdsmap *m, int w) · 54 unmodified lines
6567 }
6668
6769 extern int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m);
68−struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end, bool msgr2);
70+struct ceph_mdsmap *ceph_mdsmap_decode(struct ceph_mds_client *mdsc, void **p,
71+ void *end, bool msgr2);
6972 extern void ceph_mdsmap_destroy(struct ceph_mdsmap *m);
7073 extern bool ceph_mdsmap_is_cluster_available(struct ceph_mdsmap *m);
7174