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
5#include <linux/bug.h>5#include <linux/bug.h>
6#include <linux/ceph/types.h>6#include <linux/ceph/types.h>
7 7
8struct ceph_mds_client;
9
8/*10/*
9 * mds map - describe servers in the mds cluster.11 * mds map - describe servers in the mds cluster.
10 *12 *
@@ -65,7 +67,8 @@ static inline bool ceph_mdsmap_is_laggy(struct ceph_mdsmap *m, int w) · 54 unmodified lines
65}67}
66 68
67extern int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m);69extern int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m);
68struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end, bool msgr2);70struct ceph_mdsmap *ceph_mdsmap_decode(struct ceph_mds_client *mdsc, void **p,
71 void *end, bool msgr2);
69extern void ceph_mdsmap_destroy(struct ceph_mdsmap *m);72extern void ceph_mdsmap_destroy(struct ceph_mdsmap *m);
70extern bool ceph_mdsmap_is_cluster_available(struct ceph_mdsmap *m);73extern bool ceph_mdsmap_is_cluster_available(struct ceph_mdsmap *m);
71 74