summaryrefslogtreecommitdiff
path: root/fs/ceph/super.c
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2019-04-18 14:15:49 +0200
committerIlya Dryomov <idryomov@gmail.com>2019-07-08 14:01:41 +0200
commitd0f191d20c1ce22ccfd7c8e2327f19fbba7f7521 (patch)
treea0eb0b9ccb1f21768b00ef35de06d5d7780844dc /fs/ceph/super.c
parent2b2abcac8c251d1c77a4cc9d9f248daefae0fb4e (diff)
downloadlwn-d0f191d20c1ce22ccfd7c8e2327f19fbba7f7521.tar.gz
lwn-d0f191d20c1ce22ccfd7c8e2327f19fbba7f7521.zip
ceph: remove unused vxattr length helpers
ceph_listxattr() now calculates the length of vxattrs dynamically, so these helpers, which incorrectly ignore vxattr.exists_cb(), can be removed. Signed-off-by: David Disseldorp <ddiss@suse.de> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/super.c')
-rw-r--r--fs/ceph/super.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index d57fa60dcd43..542b31994e3b 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -1161,17 +1161,15 @@ static int __init init_ceph(void)
goto out;
ceph_flock_init();
- ceph_xattr_init();
ret = register_filesystem(&ceph_fs_type);
if (ret)
- goto out_xattr;
+ goto out_caches;
pr_info("loaded (mds proto %d)\n", CEPH_MDSC_PROTOCOL);
return 0;
-out_xattr:
- ceph_xattr_exit();
+out_caches:
destroy_caches();
out:
return ret;
@@ -1181,7 +1179,6 @@ static void __exit exit_ceph(void)
{
dout("exit_ceph\n");
unregister_filesystem(&ceph_fs_type);
- ceph_xattr_exit();
destroy_caches();
}