summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/super.c')
-rw-r--r--fs/ceph/super.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index ed1b65a6c2c3..ab4868c7308e 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -840,10 +840,10 @@ static int ceph_remount(struct super_block *sb, int *flags, char *data)
840 840
841static const struct super_operations ceph_super_ops = { 841static const struct super_operations ceph_super_ops = {
842 .alloc_inode = ceph_alloc_inode, 842 .alloc_inode = ceph_alloc_inode,
843 .destroy_inode = ceph_destroy_inode,
844 .free_inode = ceph_free_inode, 843 .free_inode = ceph_free_inode,
845 .write_inode = ceph_write_inode, 844 .write_inode = ceph_write_inode,
846 .drop_inode = ceph_drop_inode, 845 .drop_inode = generic_delete_inode,
846 .evict_inode = ceph_evict_inode,
847 .sync_fs = ceph_sync_fs, 847 .sync_fs = ceph_sync_fs,
848 .put_super = ceph_put_super, 848 .put_super = ceph_put_super,
849 .remount_fs = ceph_remount, 849 .remount_fs = ceph_remount,
@@ -978,7 +978,7 @@ static int ceph_set_super(struct super_block *s, void *data)
978 s->s_d_op = &ceph_dentry_ops; 978 s->s_d_op = &ceph_dentry_ops;
979 s->s_export_op = &ceph_export_ops; 979 s->s_export_op = &ceph_export_ops;
980 980
981 s->s_time_gran = 1000; /* 1000 ns == 1 us */ 981 s->s_time_gran = 1;
982 982
983 ret = set_anon_super(s, NULL); /* what is that second arg for? */ 983 ret = set_anon_super(s, NULL); /* what is that second arg for? */
984 if (ret != 0) 984 if (ret != 0)
@@ -1159,17 +1159,15 @@ static int __init init_ceph(void)
1159 goto out; 1159 goto out;
1160 1160
1161 ceph_flock_init(); 1161 ceph_flock_init();
1162 ceph_xattr_init();
1163 ret = register_filesystem(&ceph_fs_type); 1162 ret = register_filesystem(&ceph_fs_type);
1164 if (ret) 1163 if (ret)
1165 goto out_xattr; 1164 goto out_caches;
1166 1165
1167 pr_info("loaded (mds proto %d)\n", CEPH_MDSC_PROTOCOL); 1166 pr_info("loaded (mds proto %d)\n", CEPH_MDSC_PROTOCOL);
1168 1167
1169 return 0; 1168 return 0;
1170 1169
1171out_xattr: 1170out_caches:
1172 ceph_xattr_exit();
1173 destroy_caches(); 1171 destroy_caches();
1174out: 1172out:
1175 return ret; 1173 return ret;
@@ -1179,7 +1177,6 @@ static void __exit exit_ceph(void)
1179{ 1177{
1180 dout("exit_ceph\n"); 1178 dout("exit_ceph\n");
1181 unregister_filesystem(&ceph_fs_type); 1179 unregister_filesystem(&ceph_fs_type);
1182 ceph_xattr_exit();
1183 destroy_caches(); 1180 destroy_caches();
1184} 1181}
1185 1182