extern struct address_space_operations ll_aops;
extern struct address_space_operations ll_dir_aops;
+extern struct timer_list ll_capa_timer;
static struct super_block *ll_read_super(struct super_block *sb,
void *data, int silent)
return -ENOMEM;
}
-
proc_lustre_fs_root = proc_lustre_root ? proc_mkdir("llite", proc_lustre_root) : NULL;
rc = register_filesystem(&lustre_lite_fs_type);
rc = ll_gns_start_thread();
if (rc)
goto out;
+
+ ll_capa_timer.function = ll_capa_timer_callback;
+ ll_capa_timer.data = 0;
+ init_timer(&ll_capa_timer);
+
+ rc = ll_capa_start_thread();
+ if (rc)
+ goto out;
+
return 0;
out:
case 1:
unregister_filesystem(&lustre_lite_fs_type);
case 0:
+ kmem_cache_destroy(ll_intent_slab);
kmem_cache_destroy(ll_file_data_slab);
}
return rc;
unregister_filesystem(&lustre_lite_fs_type);
unregister_filesystem(&lustre_fs_type);
+ del_timer(&ll_capa_timer);
+ ll_capa_stop_thread();
ll_gns_stop_thread();
LASSERTF(kmem_cache_destroy(ll_file_data_slab) == 0,