summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/ceph/caps.c2
-rw-r--r--fs/ceph/super.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index f3110e8d19a8..78ed3fcf4e46 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -1127,7 +1127,7 @@ int ceph_is_any_caps(struct inode *inode)
* caller should hold i_ceph_lock.
* caller will not hold session s_mutex if called from destroy_inode.
*/
-void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release)
+static void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release)
{
struct ceph_mds_session *session;
struct ceph_client *cl;
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 6ce0b771c66b..3d7f91bc29b2 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -1278,7 +1278,6 @@ extern void ceph_add_cap(struct inode *inode,
unsigned issued, unsigned wanted,
unsigned cap, unsigned seq, u64 realmino, int flags,
struct ceph_cap **new_cap);
-extern void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release);
extern void ceph_remove_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap,
bool queue_release);
extern void __ceph_remove_caps(struct ceph_inode_info *ci);