summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2023-06-09 09:15:47 +0200
committerIlya Dryomov <idryomov@gmail.com>2023-11-03 23:28:33 +0100
commit197b7d792d6aead2e30d4b2c054ffabae2ed73dc (patch)
treef034fe5f05587ae6e9f41cbf979cb1ea84ba85eb /include
parentlibceph: add doutc and *_client debug macros support (diff)
downloadlinux-197b7d792d6aead2e30d4b2c054ffabae2ed73dc.tar.xz
linux-197b7d792d6aead2e30d4b2c054ffabae2ed73dc.zip
ceph: pass the mdsc to several helpers
We will use the 'mdsc' to get the global_id in the following commits. Link: https://tracker.ceph.com/issues/61590 Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Patrick Donnelly <pdonnell@redhat.com> Reviewed-by: Milind Changire <mchangir@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ceph/mdsmap.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/ceph/mdsmap.h b/include/linux/ceph/mdsmap.h
index 4c3e0648dc27..89f1931f1ba6 100644
--- a/include/linux/ceph/mdsmap.h
+++ b/include/linux/ceph/mdsmap.h
@@ -5,6 +5,8 @@
#include <linux/bug.h>
#include <linux/ceph/types.h>
+struct ceph_mds_client;
+
/*
* mds map - describe servers in the mds cluster.
*
@@ -65,7 +67,8 @@ static inline bool ceph_mdsmap_is_laggy(struct ceph_mdsmap *m, int w)
}
extern int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m);
-struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end, bool msgr2);
+struct ceph_mdsmap *ceph_mdsmap_decode(struct ceph_mds_client *mdsc, void **p,
+ void *end, bool msgr2);
extern void ceph_mdsmap_destroy(struct ceph_mdsmap *m);
extern bool ceph_mdsmap_is_cluster_available(struct ceph_mdsmap *m);