From 6cd69ea0f04c481b7b104c32824546e7df1806a5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 6 Jul 2026 09:38:09 +0200 Subject: [PATCH] ceph: make __ceph_remove_cap() static It's only used from within caps.c. Signed-off-by: Max Kellermann Reviewed-by: Alex Markuze Signed-off-by: Ilya Dryomov --- fs/ceph/caps.c | 2 +- fs/ceph/super.h | 1 - 2 files changed, 1 insertion(+), 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);