Whamcloud - gitweb
Land b_hd_capa onto HEAD (20050809_1942)
[fs/lustre-release.git] / lustre / obdclass / class_obd.c
index 82fc52c..856db92 100644 (file)
@@ -568,6 +568,9 @@ struct file_operations obd_device_list_fops = {
 };
 #endif
 
+extern int capa_cache_init(void);
+extern void capa_cache_cleanup(void);
+
 #ifdef __KERNEL__
 static int __init init_obdclass(void)
 #else
@@ -606,6 +609,10 @@ int init_obdclass(void)
         if (err)
                 return err;
 
+        err = capa_cache_init();
+        if (err)
+                return err;
+
 #ifdef __KERNEL__
         obd_sysctl_init();
 #endif
@@ -649,6 +656,7 @@ static void cleanup_obdclass(void)
                 }
         }
 
+        capa_cache_cleanup();
         obd_cleanup_caches();
         obd_sysctl_clean();
 #ifdef LPROCFS