ceph: make change_auth_cap_ses a global symbol
authorXiubo Li <xiubli@redhat.com>
Fri, 10 Jun 2022 02:12:49 +0000 (10:12 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 2 Aug 2022 22:54:12 +0000 (00:54 +0200)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c
fs/ceph/super.h

index 2b1f223..2677199 100644 (file)
@@ -602,8 +602,8 @@ static void __check_cap_issue(struct ceph_inode_info *ci, struct ceph_cap *cap,
  * @ci: inode to be moved
  * @session: new auth caps session
  */
-static void change_auth_cap_ses(struct ceph_inode_info *ci,
-                               struct ceph_mds_session *session)
+void change_auth_cap_ses(struct ceph_inode_info *ci,
+                        struct ceph_mds_session *session)
 {
        lockdep_assert_held(&ci->i_ceph_lock);
 
index 5946925..3c940a8 100644 (file)
@@ -767,6 +767,8 @@ extern void ceph_unreserve_caps(struct ceph_mds_client *mdsc,
 extern void ceph_reservation_status(struct ceph_fs_client *client,
                                    int *total, int *avail, int *used,
                                    int *reserved, int *min);
+extern void change_auth_cap_ses(struct ceph_inode_info *ci,
+                               struct ceph_mds_session *session);