#include <linux/init.h>
#include <linux/fs.h>
#include <linux/lprocfs_status.h>
+#include <linux/obd_support.h>
#include "llite_internal.h"
struct super_block * ll_get_sb(struct file_system_type *fs_type,
"ll_inode_cache: not all structures were freed\n");
}
+static void ll_umount_lustre(struct super_block *sb)
+{
+ struct ll_sb_info *sbi = ll_s2sbi(sb);
+ sbi->ll_flags |= LL_SBI_UMOUNT;
+ ll_gns_check_mounts(sbi, LL_GNS_UMOUNT);
+}
+
/* exported operations */
struct super_operations lustre_super_operations =
{
.clear_inode = ll_clear_inode,
.put_super = lustre_put_super,
.statfs = ll_statfs,
- .umount_begin = ll_umount_begin
+ .umount_begin = ll_umount_begin,
+ .umount_lustre = ll_umount_lustre,
+ .show_options = ll_show_options,
};
-
struct file_system_type lustre_lite_fs_type = {
.owner = THIS_MODULE,
.name = "lustre_lite",
goto out;
}
ll_intent_slab = kmem_cache_create("lustre_intent_data",
- sizeof(struct lustre_intent_data),
- 0, SLAB_HWCACHE_ALIGN, NULL,
- NULL);
+ sizeof(struct lustre_intent_data),
+ 0, SLAB_HWCACHE_ALIGN, NULL,
+ NULL);
if (ll_intent_slab == NULL) {
kmem_cache_destroy(ll_file_data_slab);
ll_destroy_inodecache();
goto out;
cleanup = 2;
- rc = ll_gns_start_thread();
+ rc = ll_gns_thread_start();
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_thread_start();
+ if (rc)
+ goto out;
+
return 0;
out:
switch (cleanup) {
unregister_filesystem(&lustre_fs_type);
unregister_filesystem(&lustre_lite_fs_type);
- ll_gns_stop_thread();
+ del_timer(&ll_capa_timer);
+ ll_capa_thread_stop();
+ ll_gns_thread_stop();
ll_destroy_inodecache();
LASSERTF(kmem_cache_destroy(ll_file_data_slab) == 0,