summaryrefslogtreecommitdiff
path: root/fs/ceph/mds_client.h
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2020-06-30 10:52:15 +0300
committerIlya Dryomov <idryomov@gmail.com>2020-08-03 12:05:10 +0300
commit3e699bd865527004773012da38febdf444fd5fa8 (patch)
tree5a988609c98ae54e7f0d90d7d63865d255ad39fd /fs/ceph/mds_client.h
parent6e6f0f0116079d6be42080064fe7079283a507ed (diff)
downloadlinux-3e699bd865527004773012da38febdf444fd5fa8.tar.xz
ceph: add check_session_state() helper and make it global
And remove the unsed mdsc parameter to simplify the code. Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/mds_client.h')
-rw-r--r--fs/ceph/mds_client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h
index 5e0c4073a6be..6147ff0a1cdf 100644
--- a/fs/ceph/mds_client.h
+++ b/fs/ceph/mds_client.h
@@ -18,6 +18,7 @@
#include <linux/ceph/auth.h>
#include "metric.h"
+#include "super.h"
/* The first 8 bits are reserved for old ceph releases */
enum ceph_feature_type {
@@ -476,6 +477,8 @@ struct ceph_mds_client {
extern const char *ceph_mds_op_name(int op);
+extern bool check_session_state(struct ceph_mds_session *s);
+
extern struct ceph_mds_session *
__ceph_lookup_mds_session(struct ceph_mds_client *, int mds);