diff options
author | Dr. David Alan Gilbert <linux@treblig.org> | 2024-10-06 03:19:56 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2024-11-18 17:34:35 +0100 |
commit | 6025b482e48041cd71111ab4f7cc28e0371b2e3e (patch) | |
tree | 3bd2be3c94a7824f0a9d14867f42e5df911dced6 /fs/ceph/caps.c | |
parent | libceph: Remove unused ceph_crypto_key_encode (diff) | |
download | linux-6025b482e48041cd71111ab4f7cc28e0371b2e3e.tar.xz linux-6025b482e48041cd71111ab4f7cc28e0371b2e3e.zip |
ceph: Remove fs/ceph deadcode
ceph_caps_revoking() has been unused since 2017's commit
3fb99d483e61 ("ceph: nuke startsync op")
ceph_mdsc_open_export_target_sessions() has been unused since 2013's
commit 11df2dfb610d ("ceph: add imported caps when handling cap export message")
Remove them.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r-- | fs/ceph/caps.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index bed34fc11c91..0d6b2c0269bf 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -978,20 +978,6 @@ int __ceph_caps_revoking_other(struct ceph_inode_info *ci, return 0; } -int ceph_caps_revoking(struct ceph_inode_info *ci, int mask) -{ - struct inode *inode = &ci->netfs.inode; - struct ceph_client *cl = ceph_inode_to_client(inode); - int ret; - - spin_lock(&ci->i_ceph_lock); - ret = __ceph_caps_revoking_other(ci, NULL, mask); - spin_unlock(&ci->i_ceph_lock); - doutc(cl, "%p %llx.%llx %s = %d\n", inode, ceph_vinop(inode), - ceph_cap_string(mask), ret); - return ret; -} - int __ceph_caps_used(struct ceph_inode_info *ci) { int used = 0; |